X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=demo%2Fboxshell.c;h=42c25790758f50ab11c5993208eacd558ef44a84;hb=95d605c6b6281c9faae8bf6db465fe7920fa12fb;hp=cdc980cf12bc0d78c06d80c55366f71d4ce38243;hpb=5618d7a42ce62103e5f29da3756b81f57198b22f;p=apps%2Fmadtty.git diff --git a/demo/boxshell.c b/demo/boxshell.c index cdc980c..42c2579 100644 --- 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); - 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 */