Changeset 453bd70 for functions.c
- Timestamp:
- Jul 2, 2003, 3:24:51 PM (21 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 7c9c847
- Parents:
- cf83b7a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
rcf83b7a r453bd70 222 222 /* make it active */ 223 223 owl_global_set_typwin_active(&g); 224 225 owl_global_set_buffercommand(&g, line); 224 226 } 225 227 … … 250 252 /* make it active */ 251 253 owl_global_set_typwin_active(&g); 254 255 owl_global_set_buffercommand(&g, line); 252 256 } 253 257 … … 300 304 /* make it active */ 301 305 owl_global_set_typwin_active(&g); 306 307 owl_global_set_buffercommand(&g, line); 302 308 } 303 309 … … 1078 1084 void owl_function_run_buffercommand() 1079 1085 { 1080 char *buff; 1086 char *buff, *ptr; 1087 1088 owl_function_debugmsg("Got: %s", buff); 1081 1089 1082 1090 buff=owl_global_get_buffercommand(&g); … … 1085 1093 } else if (!strncmp(buff, "aimwrite ", 9)) { 1086 1094 owl_function_aimwrite(buff+9); 1095 } else if (!strncmp(buff, "aimlogin ", 9)) { 1096 ptr=owl_sprintf("%s %s", buff, owl_global_get_response(&g)); 1097 owl_function_command(ptr); 1098 owl_free(ptr); 1087 1099 } 1088 1100 } … … 1945 1957 } 1946 1958 1959 void owl_function_start_password(char *line) 1960 { 1961 owl_editwin *tw; 1962 1963 tw=owl_global_get_typwin(&g); 1964 owl_global_set_typwin_active(&g); 1965 owl_editwin_new_style(tw, OWL_EDITWIN_STYLE_ONELINE, owl_global_get_cmd_history(&g)); 1966 owl_editwin_set_echochar(tw, '*'); 1967 1968 owl_editwin_set_locktext(tw, line); 1969 owl_global_set_needrefresh(&g); 1970 1971 owl_editwin_redisplay(tw, 0); 1972 1973 owl_context_set_editresponse(owl_global_get_context(&g), tw); 1974 owl_function_activate_keymap("editresponse"); 1975 } 1976 1947 1977 char *owl_function_exec(int argc, char **argv, char *buff, int type) 1948 1978 {
Note: See TracChangeset
for help on using the changeset viewer.