Changeset 3aae4e8 in mainline for uspace/app/bdsh
- Timestamp:
- 2010-04-04T22:07:05Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 23de644
- Parents:
- 9f10660f (diff), 73060801 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/app/bdsh
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/Makefile
r9f10660f r3aae4e8 29 29 30 30 USPACE_PREFIX = ../.. 31 LIBS = $(LIB _PREFIX)/block/libblock.a $(LIB_PREFIX)/clui/libclui.a32 EXTRA_CFLAGS = -I$(LIB _PREFIX)/block -I$(LIB_PREFIX)/clui-I. -Icmds/ \33 -Icmds/builtins -Icmds/modules31 LIBS = $(LIBBLOCK_PREFIX)/libblock.a $(LIBCLUI_PREFIX)/libclui.a 32 EXTRA_CFLAGS = -I$(LIBBLOCK_PREFIX) -I$(LIBCLUI_PREFIX) -I. -Icmds/ \ 33 -Icmds/builtins -Icmds/modules 34 34 BINARY = bdsh 35 35 -
uspace/app/bdsh/input.c
r9f10660f r3aae4e8 50 50 #include "errors.h" 51 51 #include "exec.h" 52 53 extern volatile unsigned int cli_quit; 52 54 53 55 /** Text input field. */ … … 107 109 { 108 110 char *str; 111 int rc; 109 112 110 113 fflush(stdout); … … 114 117 console_set_style(fphone(stdout), STYLE_NORMAL); 115 118 116 str = tinput_read(tinput); 119 rc = tinput_read(tinput, &str); 120 if (rc == ENOENT) { 121 /* User requested exit */ 122 cli_quit = 1; 123 putchar('\n'); 124 return; 125 } 126 127 if (rc != EOK) { 128 /* Error in communication with console */ 129 return; 130 } 117 131 118 132 /* Check for empty input. */ -
uspace/app/bdsh/scli.c
r9f10660f r3aae4e8 100 100 } 101 101 } 102 goto finit;103 102 104 finit: 103 printf("Leaving %s.\n", progname); 104 105 105 cli_finit(&usr); 106 106 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.
