wip: vt parsing: break out grid operating functions

This commit is contained in:
Daniel Eklöf 2019-06-17 19:33:10 +02:00
parent 6d5f5b9f7a
commit 4585df532c
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 56 additions and 36 deletions

8
grid.h Normal file
View file

@ -0,0 +1,8 @@
#pragma once
#include "terminal.h"
void grid_erase(struct grid *grid, int start, int end);
void grid_cursor_to(struct grid *grid, int pos);
void grid_cursor_move(struct grid *grid, int cols);