projects
/
apps
/
madtty.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
steal some bits from qemacs to open the pty.
[apps/madtty.git]
/
demo
/
boxshell.c
diff --git
a/demo/boxshell.c
b/demo/boxshell.c
index
cdc980c
..
42c2579
100644
(file)
--- a/
demo/boxshell.c
+++ b/
demo/boxshell.c
@@
-78,7
+78,12
@@
int main(int argc, char *argv[])
/* create the terminal and have it run bash */
rt = rote_vt_create(h, w);
/* create the terminal and have it run bash */
rt = rote_vt_create(h, w);
- rote_vt_forkpty(rt, "/bin/bash --login");
+ {
+ const char *path = "/bin/bash";
+ const char *args[] = {"/bin/bash", "--login", NULL};
+
+ rote_vt_forkpty(rt, path, args);
+ }
/* keep reading keypresses from the user and passing them to the terminal;
* also, redraw the terminal to the window at each iteration */
/* keep reading keypresses from the user and passing them to the terminal;
* also, redraw the terminal to the window at each iteration */