README.md in tty-cursor-0.6.1 vs README.md in tty-cursor-0.7.0
- old
+ new
@@ -61,19 +61,22 @@
* [2.1.13 current](#2113-current)
* [2.2 Cursor Visibility](#22-cursor-visibility)
* [2.2.1 show](#221-show)
* [2.2.2 hide](#222-hide)
* [2.2.3 invisible(stream)](#223-invisiblestream)
- * [2.3 Text Modification](#23-text-modification)
+ * [2.3 Text Clearing](#23-text-clearing)
* [2.3.1 clear_char(n)](#231-clear_charn)
* [2.3.2 clear_line](#232-clear_line)
* [2.3.3 clear_line_before](#233-clear_line_before)
* [2.3.4 clear_line_after](#234-clear_line_after)
* [2.3.5 clear_lines(n, direction)](#235-clear_linesn-direction)
* [2.3.6 clear_screen_down](#236-clear_screen_down)
* [2.3.7 clear_screen_up](#237-clear_screen_up)
* [2.3.8 clear_screen](#238-clear_screen)
+ * [2.4 Scrolling](#24-scrolling)
+ * [2.4.1 scroll_down](#241-scroll_down)
+ * [2.4.2 scroll_up](#242-scroll_up)
## 1. Usage
**TTY::Cursor** is just a module hence you can reference it for later like so:
@@ -141,11 +144,11 @@
Cursor moves to `<n>`th position horizontally in the current line.
#### 2.1.8 row(n)
-Cursor moves the the `<n>`th position vertically in the current column.
+Cursor moves to the `<n>`th position vertically in the current column.
#### 2.1.9 next_line
Move the cursor down to the beginning of the next line.
@@ -189,17 +192,17 @@
```ruby
cursor.invisible($stderr) { .... }
```
-### 2.3 Text Modification
+### 2.3 Text Clearing
All methods in this section provide APIs to modify text buffer contents.
#### 2.3.1 clear_char(n)
-Erase `<n>` characters from the current cursor position by overwritting them with space character.
+Erase `<n>` characters from the current cursor position by overwriting them with space character.
#### 2.3.2 clear_line
Erase the entire current line and return cursor to beginning of the line.
@@ -228,9 +231,20 @@
Erase the screen from the current line down to the bottom of the screen.
#### 2.3.8 clear_screen_up
Erase the screen from the current line up to the top of the screen.
+
+### 2.4 Scrolling
+
+#### 2.4.1 scroll_down
+
+Scroll display down one line.
+
+### 2.4.2 scroll_up
+
+Scroll display up one line.
+
## Contributing
1. Fork it ( https://github.com/piotrmurach/tty-cursor/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)