diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2012-02-04 14:34:33 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@googlemail.com> | 2012-02-04 14:34:33 +0100 |
commit | 2b8caca91c8f30f761ce71f104229c7b8783e633 (patch) | |
tree | 2e48da16a3ee492069c220d80dc179c6c9cfb991 /tests | |
parent | bff87253a8e493d6574cf76cb33ef139f2d8985b (diff) |
console: remove *_buffer_newline()
This function is no longer needed as we now have proper scrolling
functions. This also adjusts the buffer tests to be more appropriate.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_buffer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_buffer.c b/tests/test_buffer.c index a255775..d136d5c 100644 --- a/tests/test_buffer.c +++ b/tests/test_buffer.c @@ -87,15 +87,16 @@ static void test1(struct kmscon_buffer *buf) kmscon_buffer_write(buf, 1, 4, ch); kmscon_buffer_write(buf, 3, 4, ch); kmscon_buffer_write(buf, 5, 4, ch); + kmscon_buffer_write(buf, 9, 1, ch); kmscon_buffer_write(buf, 9, 2, ch); print_buf(buf); - kmscon_buffer_resize(buf, 5, 3); + kmscon_buffer_resize(buf, 20, 3); print_buf(buf); kmscon_buffer_resize(buf, 20, 5); print_buf(buf); kmscon_buffer_write(buf, 15, 1, ch); print_buf(buf); - kmscon_buffer_newline(buf); + kmscon_buffer_scroll_up(buf, 1); print_buf(buf); } |