aboutsummaryrefslogtreecommitdiff
path: root/include/06.keyboard/keyboard07.c
diff options
context:
space:
mode:
Diffstat (limited to 'include/06.keyboard/keyboard07.c')
-rw-r--r--include/06.keyboard/keyboard07.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/06.keyboard/keyboard07.c b/include/06.keyboard/keyboard07.c
new file mode 100644
index 0000000..480abb1
--- /dev/null
+++ b/include/06.keyboard/keyboard07.c
@@ -0,0 +1,8 @@
+void backspace()
+{
+ if(buffer_index<=0) return;
+
+ deletelast();
+ buffer[buffer_current][--buffer_index]='\0';
+ return;
+}