| 123 | } |
| 124 | |
| 125 | void |
| 126 | rdline_reset(struct rdline *rdl) |
| 127 | { |
| 128 | if (!rdl) |
| 129 | return; |
| 130 | vt100_init(&rdl->vt100); |
| 131 | cirbuf_init(&rdl->left, rdl->left_buf, 0, RDLINE_BUF_SIZE); |
| 132 | cirbuf_init(&rdl->right, rdl->right_buf, 0, RDLINE_BUF_SIZE); |
| 133 | |
| 134 | rdl->status = RDLINE_RUNNING; |
| 135 | |
| 136 | rdl->history_cur_line = -1; |
| 137 | } |
| 138 | |
| 139 | const char * |
| 140 | rdline_get_buffer(struct rdline *rdl) |