about summary refs log tree commit diff stats
path: root/src/teliva.h
Commit message (Collapse)AuthorAgeFilesLines
* less confusing nameKartik K. Agaram2021-12-211-7/+7
|
* nail down trusted Teliva channels a little moreKartik K. Agaram2021-12-211-1/+2
| | | | | | | | | | | | | | | | | | | | | | In each session, Teliva has to bootstrap a trusted channel with the computer owner while running arbitrarily untrusted code. So let's get really, really precise about what the trusted channel consists of: - the bottom-most row of screen containing the menu - the keystrokes the owner types in - ncurses COLOR_PAIR slots 254 (menu) and 255 (error) One reason the menu colors are important: we don't want people to get used to apps that hide the menu colors by setting default foreground/background to invisible and then drawing their own menu one row up. The error COLOR_PAIR I don't see any reason to carve out right now, but it seems like a good idea for Teliva the framework to not get into the habit of apps doing some things for it. I'm not sure how realistic all this is (I feel quite ill-equipped to think about security), but it seems worthwhile to err on the side of paranoia. Teliva will be paranoid so people don't have to be.
* minor colorscheme tweakKartik K. Agaram2021-12-081-1/+1
|
* slightly more obvious menu copyKartik K. Agaram2021-12-061-4/+8
| | | | Still sucks, though..
* tweak solarized-esque schemeKartik K. Agaram2021-12-061-1/+1
|
* more configurable colorsKartik K. Agaram2021-12-061-0/+86
| | | | | Also start using 256 colors, under the assumption most people will have them.
* support the comment/uncomment hotkey on MacsKartik K. Agaram2021-12-031-0/+1
| | | | | | | ^/ works on Linux but not on Mac ^- emits the same character code on Mac ^_ seems to be the underlying character code, and works on both ctrl-7 also emits the same character code
* get rid of `Esc` hotkeyKartik K. Agaram2021-12-031-1/+0
| | | | | For a variety of historical reasons, terminals pause every time you press `Esc`. Let's get rid of that lag.
* improve support for backspaceKartik K. Agaram2021-12-031-11/+1
| | | | | | | I still don't understand the entire state space here, so I'm trying to err on the side of improving discoverability of the `ctrl-h` escape hatch. Without requiring too wide a window to show all hotkeys on the menu.
* better cross-platform backspace supportKartik K. Agaram2021-11-301-0/+6
| | | | | | | | I wish I could just hide KEY_BACKSPACE and prevent myself from using it by accident. Then again, I'm not making this smarts available in Teliva programs themselves. Just for the Teliva environment.
* ctrl-/ to comment/uncomment lineKartik K. Agaram2021-11-281-0/+1
|
* ctrl-u/ctrl-k to make editing a bit more ergonomicKartik K. Agaram2021-11-281-0/+1
|
* mac backspace attempt 3Kartik K. Agaram2021-11-281-1/+1
|
* fix half-assed mac os backspace commitKartik K. Agaram2021-11-281-2/+2
|
* fix backspace on MacKartik K. Agaram2021-11-281-0/+5
| | | | | I'm deliberately restricting this incompatibility to the editor environment for now.
* editor hotkeys: sol/eolKartik K. Agaram2021-11-281-0/+1
| | | | | I'm growing attached to ^e, so mildly breaking with convention there. Perhaps this is a bad idea.
* dedup an enumKartik K. Agaram2021-11-261-0/+24