No changes between revisions
/programs/other/tte/Makefile |
0,0 → 1,3 |
KTCC = $(abspath /media/maxim/E22406D62406AE1B/KOLIBRI/TCC2/) |
tte: |
wine $(KTCC)/kos32-tcc.exe tte.c getline.c -lck -o tte |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |
/programs/other/tte/tte.c |
459,8 → 459,6 |
/// die("Failed to set raw mode"); |
} |
|
|
|
/// by Siemargl rewritten, still Ctrl+ combination works only in english locale, so need analyze scancode |
int editorReadKey() { |
int key = con_getch2(); |
1798,7 → 1796,11 |
initEditor(); |
int arg_response = handleArgs(argc, argv); |
if (arg_response == 1) { |
editorOpen(argv[1]); |
char* filename = argv[1]; |
// tolower |
for (int i = 0; i < strlen(filename); i++) filename[i] = tolower(filename[i]); |
|
editorOpen(filename); |
char* title = argv[1]; |
strcat(title, " - TinyTextEditor"); |
con_set_title(title); |
1812,7 → 1814,6 |
editorRefreshScreen(); |
editorProcessKeypress(); |
} |
|
con_exit(1); |
return 0; |
} |