Working on backing files.

Also started a sketches project to illustrate quick ideas.
This commit is contained in:
2023-10-11 23:27:42 -07:00
parent fd6e0c6899
commit 2dcc577f57
13 changed files with 590 additions and 30 deletions

10
main.cc
View File

@@ -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;
}