ed_command(): * Editline extended command * [M-X] [:] */
| 901 | * [M-X] [:] |
| 902 | */ |
| 903 | protected el_action_t |
| 904 | /*ARGSUSED*/ |
| 905 | ed_command(EditLine *el, Int c __attribute__((__unused__))) |
| 906 | { |
| 907 | Char tmpbuf[EL_BUFSIZ]; |
| 908 | int tmplen; |
| 909 | |
| 910 | tmplen = c_gets(el, tmpbuf, STR("\n: ")); |
| 911 | terminal__putc(el, '\n'); |
| 912 | |
| 913 | if (tmplen < 0 || (tmpbuf[tmplen] = 0, parse_line(el, tmpbuf)) == -1) |
| 914 | terminal_beep(el); |
| 915 | |
| 916 | el->el_map.current = el->el_map.key; |
| 917 | re_clear_display(el); |
| 918 | return CC_REFRESH; |
| 919 | } |
nothing calls this directly
no test coverage detected