Changeset 8c97fa1 for commands.c
- Timestamp:
- Dec 19, 2009, 10:49:57 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 6aa4611
- Parents:
- 1247aaa
- git-author:
- Alex Dehnert <adehnert@mit.edu> (12/19/09 21:45:37)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (12/19/09 22:49:57)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
r1247aaa r8c97fa1 314 314 "toggle-oneline", 315 315 ""), 316 317 OWLCMD_ARGS("recv:getshift", owl_command_get_shift, OWL_CTX_INTERACTIVE, 318 "gets position of receive window scrolling", "", ""), 319 320 OWLCMD_INT("recv:setshift", owl_command_set_shift, OWL_CTX_INTERACTIVE, 321 "scrolls receive window to specified position", "", ""), 316 322 317 323 OWLCMD_VOID("recv:shiftleft", owl_command_shift_left, OWL_CTX_INTERACTIVE, … … 1337 1343 { 1338 1344 owl_function_full_redisplay(); 1345 owl_global_set_needrefresh(&g); 1346 } 1347 1348 char *owl_command_get_shift(int argc, const char *const *argv, const char *buff) 1349 { 1350 if(argc != 1) 1351 { 1352 owl_function_makemsg("Wrong number of arguments for %s", argv[0]); 1353 return NULL; 1354 } 1355 return owl_sprintf("%d", owl_global_get_rightshift(&g)); 1356 } 1357 1358 void owl_command_set_shift(int shift) 1359 { 1360 owl_global_set_rightshift(&g, shift); 1361 owl_mainwin_redisplay(owl_global_get_mainwin(&g)); 1339 1362 owl_global_set_needrefresh(&g); 1340 1363 }
Note: See TracChangeset
for help on using the changeset viewer.