Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 7b11315 in mainline for uspace/app/terminal/terminal.c


Ignore:
Timestamp:
2021-11-01T21:24:05Z (3 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
24c452b3
Parents:
91ece11b
Message:

Add -c option to terminal to execute a command

This is to allow terminal-mode commands to be run from non-terminal
(i.e. GUI) context. This way is similar to what UN*X style OSses do.
For the record, I think this is a kludge. I think we can do better.
A console/terminal window could be automatically open when needed
(something like that happens in Windows?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/terminal/terminal.c

    r91ece11b r7b11315  
    888888
    889889errno_t terminal_create(const char *display_spec, sysarg_t width,
    890     sysarg_t height, terminal_flags_t flags, terminal_t **rterm)
     890    sysarg_t height, terminal_flags_t flags, const char *command,
     891    terminal_t **rterm)
    891892{
    892893        terminal_t *term;
     
    10131014
    10141015        list_append(&term->link, &terms);
    1015         getterm(vc, "/app/bdsh");
     1016        getterm(vc, command);
    10161017
    10171018        term->is_focused = true;
Note: See TracChangeset for help on using the changeset viewer.