Working on backing files.
Also started a sketches project to illustrate quick ideas.
This commit is contained in:
10
main.cc
10
main.cc
@@ -26,12 +26,14 @@
|
||||
|
||||
#include "Buffer.h"
|
||||
#include "Cursor.h"
|
||||
#include "LineEnding.h"
|
||||
|
||||
|
||||
static void
|
||||
usage(std::ostream &os, int exitCode)
|
||||
{
|
||||
os << "ke - kyle's editor ++\n";
|
||||
os << "ke - kyle's editor version " << TOSTRING(KGE_VERSION)
|
||||
<< "/" << PlatformCurrent << "\n";
|
||||
os << "\nUsage:\n";
|
||||
os << "\tke [files]\n";
|
||||
exit(exitCode);
|
||||
@@ -46,18 +48,16 @@ ShowDist(Cursor a, Cursor b)
|
||||
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
if ((argc == 2) && (std::string(argv[1]) == "-h")) {
|
||||
std::cout << "help?\n";
|
||||
usage(std::cout, 0);
|
||||
}
|
||||
|
||||
Buffer frame;
|
||||
std::cout << frame.Name() << "\n";
|
||||
|
||||
ShowDist(Cursor(0, 0), Cursor(5, 5));
|
||||
ShowDist(Cursor(2, 2), Cursor(4, 4));
|
||||
ShowDist(Cursor(32, 12), Cursor(14, 71));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user