Changes in uspace/lib/clui/tinput.c [68b5dd11:a2bdcf87] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/clui/tinput.c
r68b5dd11 ra2bdcf87 457 457 } 458 458 459 static void tinput_set_str(tinput_t *ti, c onst char *str)459 static void tinput_set_str(tinput_t *ti, char *str) 460 460 { 461 461 str_to_wstr(ti->buffer, INPUT_MAX_SIZE, str); … … 853 853 } 854 854 855 /** Read in one line of input with initial text provided.855 /** Read in one line of input. 856 856 * 857 * @param ti Text input 858 * @param istr Initial string 859 * @param dstr Place to save pointer to new string 857 * @param ti Text input. 858 * @param dstr Place to save pointer to new string. 860 859 * 861 860 * @return EOK on success … … 864 863 * 865 864 */ 866 int tinput_read _i(tinput_t *ti, const char *istr, char **dstr)865 int tinput_read(tinput_t *ti, char **dstr) 867 866 { 868 867 console_flush(ti->console); … … 870 869 return EIO; 871 870 872 tinput_set_str(ti, istr); 873 871 ti->pos = 0; 874 872 ti->sel_start = 0; 873 ti->nc = 0; 874 ti->buffer[0] = '\0'; 875 875 ti->done = false; 876 876 ti->exit_clui = false; … … 916 916 } 917 917 918 /** Read in one line of input.919 *920 * @param ti Text input921 * @param dstr Place to save pointer to new string.922 *923 * @return EOK on success924 * @return ENOENT if user requested abort925 * @return EIO if communication with console failed926 *927 */928 int tinput_read(tinput_t *ti, char **dstr)929 {930 return tinput_read_i(ti, "", dstr);931 }932 933 918 static void tinput_key_ctrl(tinput_t *ti, kbd_event_t *ev) 934 919 {
Note:
See TracChangeset
for help on using the changeset viewer.