diff options
| author | Sadrul Habib Chowdhury <sadrul@users.sourceforge.net> | 2009-09-30 15:54:19 -0400 |
|---|---|---|
| committer | Sadrul Habib Chowdhury <sadrul@users.sourceforge.net> | 2009-09-30 15:54:19 -0400 |
| commit | 8147d08647d59aba7accb748c42db2aba3f31bc4 (patch) | |
| tree | 2decb5cf015d3b1899116d79cd2c11628fd2ce60 /src/comm.c | |
| parent | 7cb17d54cc8fca88e17d6d1e7be2fd49daef1b9d (diff) | |
| download | screen-8147d08647d59aba7accb748c42db2aba3f31bc4.tar.gz | |
'screen -Q <command>' to get back results.
This is the just the start of querying an existing session. The goal
is to allow something like "windows=`screen -Q windows`" in a bash
script to get back the results from the 'windows' command.
Most of the framework is done. Now the commands need to be updated
to specially deal with the queries.
Diffstat (limited to 'src/comm.c')
| -rw-r--r-- | src/comm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -206,12 +206,12 @@ struct comm comms[RC_LAST + 1] = { "hstatus", NEED_FORE|ARGS_1 }, { "idle", ARGS_0|ARGS_ORMORE }, { "ignorecase", ARGS_01 }, - { "info", NEED_LAYER|ARGS_0 }, + { "info", CAN_QUERY|NEED_LAYER|ARGS_0 }, #ifdef ENCODINGS { "kanji", NEED_FORE|ARGS_12 }, #endif { "kill", NEED_FORE|ARGS_0 }, - { "lastmsg", NEED_DISPLAY|ARGS_0 }, + { "lastmsg", CAN_QUERY|NEED_DISPLAY|ARGS_0 }, { "layout", ARGS_1|ARGS_ORMORE}, { "license", NEED_LAYER|ARGS_0 }, #ifdef LOCK |
