‫OK, everybody, we're going to implement backspace space in the terminal now, so I just want to scroll
‫down to Colonel Dot C and the ASCII character for Backspaces zero zero eight.
‫So in terminal, right.
‫Char, I just want us to say, if C is equal to zero zero eight, then terminal backspace, which we
‫haven't created yet.
‫OK, and now we're just going to return here as well.
‫All right.
‫And now up here, we're going to say, boy, terminal backspace, OK, and we're simply going to say
‫if terminal row equals zero and terminal column equals zero, then we can't go back any further.
‫So we just return, OK?
‫And now under here, we're going to have another condition where we check if the terminal column is
‫zero.
‫And if that's the case, then we need to minus one from the row and reset the column.
‫So the VGA with OK, and I just under here, we're going to want to say terminal column minus equals
‫one and we're going to say terminal, right, Char?
‫And it's going to just be a space, just a little space that's said, and then we're going to want to
‫set the column back again, mind the sequel's one.
‫And that is so the next key press overwrites this space that we've just made.
‫OK, so that looks OK.
‫If we now compile that and run that, we should be able to use backspace just to make clean bill to
‫that sage.
‫Keep in kumu.
‫Now, just start typing, testing and, yeah, look, we can go back.
‫You say, and we can't go back any more than they won't allow us, so, yeah, we can see that that
‫works.
‫Testing, one, two, three, four, and we can delete that.
‫That's perfect.
‫So that that that works, guys.
‫Well done.
‫Now, the answer key still doesn't work the way around.
‫That is quite simple.
‫We create a function that gets lines OK, and essentially we'll type something.
‫Hello world.
‫And when you press enter, that counts as a line.
‫OK, so we would read the lines based on every note, every new line character, OK, and then we would
‫print a new line cat once we've parsed the line, which will cause the terminal row to increase by one.
‫OK, so that's how that works.
‫But we don't have to worry about that.
‫That'll come later on because we are going to need to write a bit of a C program for that sort of thing
‫because it's a bit difficult to get right.
‫However, you can see that this now works absolutely fine.
‫Backspace now works.
‫Congratulations.