Daniel Eklöf
f1b1ac39f6
slave: check return value of chdir()
2020-02-20 18:46:35 +01:00
Daniel Eklöf
b5efe984bb
slave: prefix argv[0] with a '-' when spawning a login-shell
2020-02-20 18:36:09 +01:00
Daniel Eklöf
39146fac5c
term: term_init: add 'cwd' argument
...
This is used when spawning the slave, to set its current working
directory just before we exec() the client.
In a regular foot instance, we set the cwd from getcwd().
In a foot server instance, each connecting client sends its cwd to the
server, and we use that.
2019-12-21 19:57:28 +01:00
Daniel Eklöf
57de9feaa5
term: term_spawn_new(): new function, spawns a new foot/footclient process
...
Bind ctrl+shift+return to it
2019-12-21 15:27:17 +01:00
Daniel Eklöf
61dfa1365e
slave: restore signals before calling exec()
2019-11-03 13:24:15 +01:00
Daniel Eklöf
d3e4ba6c94
slave: remove unneeded define
2019-11-03 13:02:16 +01:00
Daniel Eklöf
8cf981ca12
slave: turn on FD_CLOEXEC after slave has been spawned
...
This ensures that our ptmx FD isn't carried over to other terminals
spawned later.
2019-11-03 01:14:02 +01:00
Daniel Eklöf
69d62d3cd2
slave: set TERM environment variable in slave process
2019-11-01 21:01:15 +01:00
Daniel Eklöf
54039c1fb4
slave: log child's errno, not parents
2019-10-30 20:21:19 +01:00
Daniel Eklöf
98ccd01c1b
slave: fix debug logging (no 'term' variable)
2019-10-30 20:20:56 +01:00
Daniel Eklöf
18921f7f45
term: move client startup to a new function, slave_spawn()
2019-10-30 18:05:03 +01:00
Daniel Eklöf
ce5f5e4d51
slave: rename slave_spawn() -> slave_exec()
2019-10-30 17:30:58 +01:00
Daniel Eklöf
c11cc2be57
main: allow user to override shell on the command line
2019-07-17 09:55:36 +02:00
Daniel Eklöf
2046dc0fbd
slave: break out command line tokenizer
2019-07-17 09:46:45 +02:00
Daniel Eklöf
aa87be43ba
slave: report exec() failure back to main process
2019-07-17 09:39:12 +02:00
Daniel Eklöf
153894eb73
slave: exec shell from conf
2019-07-17 09:30:39 +02:00
Daniel Eklöf
1373d18dbc
logging: disable debug logging by default
2019-07-03 20:21:03 +02:00
Daniel Eklöf
34fb86724f
slave: remove initial debug code
2019-06-29 20:49:35 +02:00
Daniel Eklöf
2a4c08b941
wip: vt parsing: initial csi/osc dispatching
2019-06-15 22:22:44 +02:00
Daniel Eklöf
9f9949aeec
Initial handling of multi byte characters
...
Use mblen() to calculate the byte count for each character.
2019-06-13 21:23:52 +02:00
Daniel Eklöf
46e3c9d4d4
Render cursor
2019-06-13 20:40:03 +02:00
Daniel Eklöf
71703e7dc6
Use frame callback to rate-limit surface updates
2019-06-13 17:14:14 +02:00
Daniel Eklöf
9ccc8433c3
initial grid implementation
...
This allows us to render *something*, even though it's inefficient,
stupid and far far away from the real thing.
2019-06-13 16:24:35 +02:00
Daniel Eklöf
acda4d2d31
Set up pseudo terminal and fork slave
2019-06-13 15:19:10 +02:00