Commit Graph

447 Commits

Author SHA1 Message Date
K. Lange
d049085a3b [bim] Add rudimentary indent adjustment 2018-08-20 10:30:07 +09:00
K. Lange
312bf70943 [bim] Add rudimentary automatic indenting 2018-08-20 10:03:22 +09:00
K. Lange
567546a2ce [bim] Syntax hilighting for Make 2018-08-20 09:25:11 +09:00
K. Lange
5bdaa7b77b [bim] Copy UTF8 decoder into bim so it is single-file 2018-08-19 21:07:56 +09:00
K. Lange
fa4b4daca8 [bim] Fix up trying to parse syntax at load time 2018-08-19 21:07:56 +09:00
K. Lange
ca08d442d6 Replace utf8decode with our own thing 2018-08-19 21:07:52 +09:00
K. Lange
dd973824c0 [bim] Invert #ifdef __linux__ to match #ifdef __toaru__ earlier 2018-08-19 19:49:13 +09:00
K. Lange
2688a4ca8f [bim] Support reading data from stdin 2018-08-19 19:29:00 +09:00
K. Lange
b3f72db522 [bim] Accept shift-D for delete lines 2018-08-19 18:01:24 +09:00
K. Lange
6f9136b672 [bim] Show yank count in status 2018-08-19 17:53:36 +09:00
K. Lange
11b99652c5 [bim] Line yank/paste 2018-08-19 17:10:22 +09:00
K. Lange
2d3cd5fe1c [bim] Line selection mode 2018-08-19 16:35:16 +09:00
K. Lange
a1f52c1679 [bim] minor cleanup 2018-08-19 15:33:20 +09:00
K. Lange
8e4292c6d6 [bim] Fix printing some escape bytes 2018-08-18 21:07:46 +09:00
K. Lange
53a64a12dc [bim] fix bad if 2018-08-18 20:16:23 +09:00
K. Lange
58dca9e8d7 [bim] read-only buffers 2018-08-18 20:09:27 +09:00
K. Lange
9a9ff0f32e Oops, broke ; in escapes with that 2018-08-18 19:59:19 +09:00
K. Lange
3c545f00ed [bim] Fix some insert-mode escape handling 2018-08-18 19:43:15 +09:00
K. Lange
482fe9280b [bim] Ctrl-Left, Ctrl-Right 2018-08-18 18:23:31 +09:00
K. Lange
3c7d79b695 Restructure input escape processing 2018-08-18 17:33:41 +09:00
K. Lange
99ef3cb80f [bim] New command stuff and help 2018-08-18 15:34:00 +09:00
K. Lange
0b8fda0a20 [bim] 16-color support in theming 2018-08-18 15:20:37 +09:00
K. Lange
5521676f4f [bim] Support for color themes, solarized-dark, citylights 2018-08-18 13:23:12 +09:00
K. Lange
b70ad67ac4 Potentially support 24-bit color in themes 2018-08-18 12:13:51 +09:00
K. Lange
179ffe37da [bim] Colors as const char * to prepare for themes 2018-08-18 12:08:40 +09:00
K. Lange
5903ff9a73 [bim] Change up how the line numbers work 2018-08-18 11:27:13 +09:00
K. Lange
f69d965749 [bim] rudimentary numeral highlighting 2018-08-18 11:17:04 +09:00
K. Lange
072520bf01 [bim] Fix default tabstop, tabs settings 2018-08-18 09:21:27 +09:00
K. Lange
c210ec4987 tabstops 2018-08-18 09:10:14 +09:00
K. Lange
27b46493f6 [bim] Fix bad buffer for utf8 encoding in write 2018-08-17 23:22:41 +09:00
K. Lange
4d735731f9 [bim] tabs or spaces? 2018-08-17 23:16:49 +09:00
K. Lange
f5ceddfab4 [bim] Hilight C character constants 2018-08-17 22:42:54 +09:00
K. Lange
3b9a8c18c7 [bim] fix an accidental off-by-one closing comments 2018-08-17 22:30:27 +09:00
K. Lange
626e3557cd Fix tab/escapes reseting colors 2018-08-17 22:21:34 +09:00
K. Lange
f79ee98749 [bim] Additionally release Bim under ISC 2018-08-17 22:05:24 +09:00
K. Lange
3f6c6b3320 qq sorry lioncash, your code disappeared years ago 2018-08-17 22:02:09 +09:00
K. Lange
8b69bba2dd Update outdated heading comment in shell 2018-08-17 21:56:50 +09:00
K. Lange
d1f1aa465e [bim] Add :help command 2018-08-17 21:52:37 +09:00
K. Lange
2089ab7bd8 [bim] Be sure to set syntax on new file 2018-08-17 21:31:33 +09:00
K. Lange
dbeeb21091 [bim] Better color theming support 2018-08-17 21:25:14 +09:00
K. Lange
c2dbcea8f2 [bim] oops, need to account for tab 2018-08-17 20:53:07 +09:00
K. Lange
3362f22b7f Render bytes <32 like vim does 2018-08-17 20:51:15 +09:00
K. Lange
90df5828f7 [bim] getopt and option to disable hilighting 2018-08-17 20:08:12 +09:00
K. Lange
896b5ba877 Fix missing free in sh file completion 2018-08-17 19:52:18 +09:00
K. Lange
8bff3a917e Basic command tab completion 2018-08-17 19:37:55 +09:00
K. Lange
ba0139f477 Fixup syntax command 2018-08-17 15:37:13 +09:00
K. Lange
c6844efd99 [bim] Support mouse for setting tab 2018-08-17 15:32:01 +09:00
K. Lange
e0447ffa34 [bim] More cleanup 2018-08-17 10:23:43 +09:00
K. Lange
c5e42f80e7 [bim] Multiline quotes and comments 2018-08-17 10:11:43 +09:00
K. Lange
e9e0b5141a [bim] Fix an off-by-one when scrolling the last line on screen 2018-08-17 08:40:09 +09:00
K. Lange
4c103806d0 Fix bad reads due to erroneous use of stdio 2018-08-17 08:36:45 +09:00
K. Lange
b79e33ad76 [bim] Fix more bad accesses 2018-08-17 08:30:16 +09:00
K. Lange
e1999b5306 [bim] Fixups and Linux support 2018-08-17 08:27:27 +09:00
K. Lange
f9d9226e07 [bim] Don't create or throw errors on non-existent files 2018-08-16 23:28:37 +09:00
K. Lange
1d967c882b [bim] Mouse support 2018-08-16 23:23:04 +09:00
K. Lange
87b6a3aba5 [bim] Improve rendering speed by not sending so many color codes 2018-08-16 22:43:18 +09:00
K. Lange
a84e3e7c4d [bim] syntax code doc cleanup 2018-08-16 19:55:07 +09:00
K. Lange
22221a20fe [bim] Syntax highlighting 2018-08-16 19:46:13 +09:00
K. Lange
0a46feb201 [bim] Be sure to z flags in new char_t's 2018-08-16 17:43:26 +09:00
K. Lange
1576a65597 Don't reset colors after drawing commandline 2018-08-16 17:37:42 +09:00
K. Lange
6eef68699d Add rudimentary text search 2018-08-16 17:25:59 +09:00
K. Lange
1bed29911e Lots of BIM cleanup 2018-08-16 16:50:05 +09:00
K. Lange
a51c5113f2 Change how mode gets tracked for status bars 2018-08-16 14:55:22 +09:00
K. Lange
458ceb00bd [bim] Support page up, page down, del 2018-08-16 14:06:54 +09:00
K. Lange
317a500bd6 [bim] redraw INSERT when scrolling insert mode 2018-08-16 13:30:46 +09:00
K. Lange
2d8c538b71 [bim] Use scrolling to not redraw display on cursor movements 2018-08-16 13:03:34 +09:00
K. Lange
c311199ad1 [bim] Fix buffer loading 2018-08-16 12:38:30 +09:00
K. Lange
991479501f [bim] Add shell commands 2018-08-16 12:16:07 +09:00
K. Lange
9cf3fa4fe2 Stuff ^[[H/^[[F for home/end instead of ^[OH/^[OF 2018-08-16 12:02:28 +09:00
K. Lange
bc1cce36e2 Fix cursor redraw in terminals 2018-08-16 12:00:53 +09:00
K. Lange
132b77ba53 no special toaru cursor handling 2018-08-16 11:45:18 +09:00
K. Lange
0d02884572 Fix end-of-file line feed handling 2018-08-16 11:38:35 +09:00
K. Lange
d5d04799ef [bim] Fix horizontal scrolling 2018-08-16 11:35:15 +09:00
K. Lange
dd5e256ad2 Complete editing 2018-08-16 10:47:49 +09:00
K. Lange
d72de8568c Try to cleanup cursor stuff in bim, but this may be a lost cause 2018-08-16 09:58:36 +09:00
K. Lange
f36d45b21c Adapt sh 'help' command to built-in command lengths 2018-08-15 23:00:12 +09:00
K. Lange
0ac9adf3f0 Catch bad file in readelf 2018-08-15 17:27:03 +09:00
K. Lange
36ca4d420b sys/mount.h 2018-08-15 15:49:01 +09:00
K. Lange
cce92274b8 Remove stray vim:s at ends of files 2018-08-15 15:47:43 +09:00
K. Lange
cf5e6ea3be Cleanups; remove write-out 2018-08-15 15:47:03 +09:00
K. Lange
6ac1370025 Catch some bad shell syntax 2018-08-15 13:09:12 +09:00
K. Lange
b6c3951497 Application cleanup 2018-08-15 10:07:33 +09:00
K. Lange
5b5462fb72 Library cleanup 2018-08-14 17:24:25 +09:00
K. Lange
2531edb2da Header comments for a bunch of apps 2018-08-14 17:13:38 +09:00
K. Lange
2d231a97af Cleanup init 2018-08-14 14:45:30 +09:00
K. Lange
1d28a49dd7 Remove calls to _XLOG in shell 2018-08-14 14:03:47 +09:00
K. Lange
0f9c404ee8 Support having spaces in kcmdline-parsed kernel command line paremeters by using the UNIT SEPARATOR 2018-08-14 11:39:00 +09:00
K. Lange
6430ce85b3 Handle spaces in variables when not quoted 2018-08-14 11:38:33 +09:00
K. Lange
96f2d346d1 Terminal code cleanup 2018-08-14 11:12:56 +09:00
K. Lange
f7e6ceebf2 add not command to shell to invert return codes 2018-08-14 08:11:19 +09:00
K. Lange
70e4125032 getty -a, login -f 2018-08-13 13:30:12 +09:00
K. Lange
a8ead1f0b0 fix crash when clicking out of bounds 2018-08-12 20:33:08 +09:00
K. Lange
459fdd1eae don't show . and .. 2018-08-12 20:14:07 +09:00
K. Lange
2d23fad113 Functioning file-browser 2018-08-12 20:03:37 +09:00
K. Lange
e8246673b9 qemu display harness should use ttyS1 2018-08-12 17:55:23 +09:00
K. Lange
eff64a3fc0 Automatically run qemu display hack if under harness 2018-08-12 17:21:05 +09:00
K. Lange
ad8d87c081 Improve stat 2018-08-12 17:14:06 +09:00
K. Lange
8fb1d23b53 rename init.d to startup.d to avoid conflicting with typical usage 2018-08-12 16:47:22 +09:00
K. Lange
6234f2f157 Improvements to kcmdline 2018-08-12 16:42:02 +09:00
K. Lange
4fbfafc442 New shell-script-based init system 2018-08-12 16:36:56 +09:00
K. Lange
4dfa82543e add kcmdline 2018-08-12 16:36:15 +09:00
K. Lange
4f36cadff4 New sh features
- `if` should call clauses in correct context if they are builtins
- add equals? and exec
2018-08-12 16:35:07 +09:00
K. Lange
ff294fd1eb scrolling in file browser 2018-08-12 13:59:00 +09:00
K. Lange
db9e401354 Don't fork off to call system for help, about 2018-08-12 13:24:34 +09:00
K. Lange
74cf97ebc2 eshrc 2018-08-12 10:52:00 +09:00
K. Lange
a4f90bfe34 Configurable prompts 2018-08-12 10:42:01 +09:00
K. Lange
ad7a43623f More skeleton stuff for help-browser 2018-08-10 17:31:44 +09:00
K. Lange
cc681ba312 poc file browser stuff 2018-08-10 13:57:24 +09:00
K. Lange
3b6b6b3afd Better usage help for fetch 2018-08-10 13:34:52 +09:00
K. Lange
ae79cf7830 implicit def of getopt in yutani-query 2018-08-08 18:16:25 +09:00
K. Lange
caee0644a5 Fix some backtick stuff in shell 2018-08-08 15:53:34 +09:00
K. Lange
e2b25ebaca yutani-clipboard 2018-08-08 11:46:10 +09:00
K. Lange
9b4a1174b6 More shoddy shell stuff 2018-08-08 10:14:59 +09:00
K. Lange
b677716900 Shoddy ; support 2018-08-07 16:56:25 +09:00
K. Lange
517335df44 Mediocre conditionals in shell 2018-08-07 14:27:49 +09:00
K. Lange
e00ab8983c replace term-set completions with toggle-abs-mouse (since term-set is gone) 2018-08-04 09:43:26 +09:00
K. Lange
dd1baf17ca rename toggle-abs-mouse 2018-08-04 09:43:15 +09:00
K. Lange
cd7609c420 vbox SetPointerShape support 2018-08-04 08:46:13 +09:00
K. Lange
0c5187f8ab Add tool to toggle relative/absolute mouse modes 2018-08-04 08:41:08 +09:00
K. Lange
19d0c05557 Fix relative mouse in vga under virtualbox 2018-08-04 08:40:59 +09:00
K. Lange
63670e7a4b Fix enforcing maximum seamless window count 2018-08-03 20:01:28 +09:00
K. Lange
888b4a0c75 Basic VirtualBox Seamless display driver 2018-08-03 19:29:37 +09:00
K. Lange
100e586e33 Handle nested exit more gracefully 2018-08-02 19:17:18 +09:00
K. Lange
b524630bec Exit compositor when last client exits 2018-08-02 19:13:16 +09:00
K. Lange
4b50fd324d Change how text login generally works so getty can die and reboot after login session ends 2018-08-02 18:48:45 +09:00
K. Lange
d80c893c38 Add killall, pidof 2018-08-02 14:55:37 +09:00
K. Lange
ebd877624f add true, false 2018-08-02 14:50:06 +09:00
K. Lange
e98b017e0d Add pwd 2018-08-02 14:10:46 +09:00
K. Lange
ae6532607a Add libc wrappers for some syscalls, remove unused syscall.h imports 2018-08-02 13:13:27 +09:00
K. Lange
3f39c0ad61 Remove term-set and support for special terminal font escapes 2018-08-02 11:16:08 +09:00
K. Lange
be7d961ee7 make fallback hostname localhost 2018-08-02 03:42:25 +09:00
K. Lange
bd3f1b0334 get/sethostname 2018-08-02 03:40:43 +09:00
K. Lange
39beedf9c5 sudo -s should set USER to root... 2018-08-01 10:27:15 +09:00
K. Lange
e2de537a28 hack for sudo -s 2018-08-01 10:19:22 +09:00
K. Lange
b3123d7e67 add uname -o 2018-08-01 10:12:27 +09:00
K. Lange
afe2282286 more yutani startup checks 2018-08-01 10:03:44 +09:00
K. Lange
43da728a6b getty can run ttysize on startup, I guess 2018-08-01 10:03:34 +09:00
K. Lange
2b8ad34533 Complete variable names in shell (only at start of argument) 2018-08-01 09:35:46 +09:00
K. Lange
eed3926793 Don't just segfault on failed compositor connections 2018-08-01 09:21:13 +09:00
K. Lange
03d6199af7 Decorator can handle checking for menus 2018-07-24 09:20:11 +09:00
K. Lange
e698fa5e81 Remove stray references to my old name 2018-07-23 20:01:23 +09:00
K. Lange
40ae768948 Put all the network info into the panel widget 2018-07-22 12:33:13 +09:00
K. Lange
5f7b7c9f38 Render windows as focused when they have menus, like we used to in python 2018-07-22 01:24:22 +09:00
K. Lange
c46861ef08 Stop tracing commands in glogin and leakin' passwords 2018-07-21 23:54:11 +09:00
K. Lange
1727ececf4 Try a bigger font 2018-07-21 23:45:24 +09:00
K. Lange
a0954ddb9c Move the text down one more pixel 2018-07-21 23:42:27 +09:00
K. Lange
ac54109f1f Adjust text position in text boxes 2018-07-21 23:34:47 +09:00
K. Lange
e65ede014b Focused text box should have white background and a blue border 2018-07-21 23:30:48 +09:00
K. Lange
f7cc3fc327 Style tweaks for glogin-provider 2018-07-21 23:00:33 +09:00
K. Lange
f77064f364 Bring back old C gui login as new glogin-provider 2018-07-21 22:53:18 +09:00