diff options
Diffstat (limited to 'boxes.c')
-rw-r--r-- | boxes.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -95,7 +95,7 @@ GLOBALS( | |||
95 | * and each view points to a content (file) for it's text. A content can | 95 | * and each view points to a content (file) for it's text. A content can |
96 | * have many views. Each content has a context (editor). There is only | 96 | * have many views. Each content has a context (editor). There is only |
97 | * ever one edit line, it's the line that is being edited at the moment. | 97 | * ever one edit line, it's the line that is being edited at the moment. |
98 | * Tthe edit line moves within and between boxes (including the command | 98 | * The edit line moves within and between boxes (including the command |
99 | * line) as needed. | 99 | * line) as needed. |
100 | * | 100 | * |
101 | * The justification for boxes is that most of the editors we are trying to | 101 | * The justification for boxes is that most of the editors we are trying to |
@@ -422,7 +422,7 @@ Have a common menu up the top. | |||
422 | MC has a menu that changes per mode. | 422 | MC has a menu that changes per mode. |
423 | Nano has no menu. | 423 | Nano has no menu. |
424 | Have a common display of certain keys down the bottom. | 424 | Have a common display of certain keys down the bottom. |
425 | MC like is one row of F1 to F10, but changes for edit / view / file browse. But those are contexts here. | 425 | MC is one row of F1 to F10, but changes for edit / view / file browse. But those are contexts here. |
426 | Nano is 12 random Ctrl keys, possibly in two lines, that changes depending on the editor mode, like editing the prompt line for various reasons, help. | 426 | Nano is 12 random Ctrl keys, possibly in two lines, that changes depending on the editor mode, like editing the prompt line for various reasons, help. |
427 | */ | 427 | */ |
428 | struct context // Defines a context for content. Text viewer, editor, file browser for instance. | 428 | struct context // Defines a context for content. Text viewer, editor, file browser for instance. |
@@ -443,7 +443,7 @@ struct context // Defines a context for content. Text viewer, editor, file b | |||
443 | // Or not, since the commands might be different / more of them. | 443 | // Or not, since the commands might be different / more of them. |
444 | }; | 444 | }; |
445 | 445 | ||
446 | // TODO - might be better off just having having a general purpose "widget" which includes details of where it gets attached. | 446 | // TODO - might be better off just having a general purpose "widget" which includes details of where it gets attached. |
447 | // Status lines can have them to. | 447 | // Status lines can have them to. |
448 | struct border | 448 | struct border |
449 | { | 449 | { |
@@ -2434,7 +2434,7 @@ void boxes_main(void) | |||
2434 | 2434 | ||
2435 | // TODO - Should do an isatty() here, though not sure about the usefullness of driving this from a script or redirected input, since it's supposed to be a UI for terminals. | 2435 | // TODO - Should do an isatty() here, though not sure about the usefullness of driving this from a script or redirected input, since it's supposed to be a UI for terminals. |
2436 | // It would STILL need the terminal size for output though. Perhaps just bitch and abort if it's not a tty? | 2436 | // It would STILL need the terminal size for output though. Perhaps just bitch and abort if it's not a tty? |
2437 | // On the other hand, sed don't need no stikin' UI. And things like more or less should be usable on the end of a pipe. | 2437 | // On the other hand, sed don't need no stinkin' UI. And things like more or less should be usable on the end of a pipe. |
2438 | 2438 | ||
2439 | // TODO - set up a handler for SIGWINCH to find out when the terminal has been resized. | 2439 | // TODO - set up a handler for SIGWINCH to find out when the terminal has been resized. |
2440 | terminal_size(&W, &H); | 2440 | terminal_size(&W, &H); |