The backspace key on the keyboard (deletes the previous character)
Questions tagged [backspace]
354 questions
3
votes
3 answers
MacVim Visual Selection Delete moves back 3 extra chars
Using MacVim with https://github.com/carlhuda/janus installed, when I select a visual or insert block and hit backspace, the cursor jumps back an extra 3 spaces. Anyone else see this? Makes it real annoying to do my favorite shift-cmd-up to select…

notbrain
- 3,366
- 2
- 32
- 42
3
votes
4 answers
Kivy Python: Detect backspace in Text Input
I am trying to create a simple TextInput for dates that limits input to numbers and auto-populates the the forward slashes for a (mm/dd/yy) format. I was successful in creating a filter that does this by redefining insert_text(), except when the…

brother_friend_
- 33
- 4
3
votes
0 answers
strange behavior of backspace in a running readline code
I wrote a c++ code with the readline library:
#include
#include
#include
#include
#include
int main(int argc, char** argv) {
char* buf;
while ((buf = readline(">> ")) !=…

rnels12
- 639
- 6
- 12
3
votes
2 answers
Vim weird behaviour with backspace with empty .vimrc
I'm having a weird issue with vim on Ubuntu. I've been using it for the last few weeks, trying to learn, on Windows and it behaves differently now that I'm using it on Linux.
I noticed that while in insert mode pressing backspace will delete text…

Mxx
- 31
- 3
3
votes
1 answer
'\b' to produce backspace not working in fprintf to txt file (MATLAB)
I am trying to make a text file with the contents of a cell array. Below is a MWE. When I use fprintf without the file argument (to just print in the command window, e.g., fprintf(['\t\\hline ',repmat('%s & ',1,size(A,1)),'\b\b','\\\\','\n'],A{:})),…

Rodrigues
- 143
- 1
- 5
3
votes
4 answers
Flex 3: disable backspace and delete in a TextArea
I'm trying to prevent any key from altering the text in a Flex TextArea. I don't want to set the editable property to false, because I want the caret to be visible for a 'current position' indicator, so that the user knows where a search he…

Nic
- 65
- 1
- 8
3
votes
3 answers
Prevent backspace from deleting in Jquery
I have a text box. When a user presses the backspace button, I want to prevent the backspace from deleting text and to give a specific alert e.g. "Do you want to delete"? along with two buttons. Only when the user confirms the delete operation, the…

Arpita Dutta
- 291
- 7
- 19
3
votes
1 answer
Use of backspace with endl and \n in C++
I have written a small C++ program to understand the use of \b. The program is given below -
#include
using namespace std;
int main(){
cout << "Hello World!" << "\b";
return 0;
}
So, this program gives the desired output Hello…

Dishank Agrawal
- 31
- 6
3
votes
3 answers
Creating a backspace button on my calculator python tkinter GUI
i'm very new to python and i would like to fix the "C" button so that it clears the last number on the display. For example 321 would become 32, i have tried a lot of things but i can't seem to get it to work, i would be very grateful if someone…

Jack
- 41
- 1
- 5
3
votes
1 answer
How do you do a backspace escape character in Android?
I have a textView with some text in it. I want to delete the last 4 characters and then add on some more text. I tried doing this.
textViewObject.append("\b\b\b\b new text that I am adding");
But instead of the \b doing a backspace, they show up as…

Adam
- 33
- 3
3
votes
1 answer
When making a custom iOS keyboard extension, how can I create a button that has the same functionality as Apple's original backspace key?
I am making a customKeyboard which have delete button for delete a text and code for that is:
func addDelete() {
deleteButton = UIButton.buttonWithType(.System) as UIButton
deleteButton.setTitle(" Delete ", forState: .Normal)
…

Dharmesh Kheni
- 71,228
- 33
- 160
- 165
3
votes
1 answer
zsh: How to backspace through to the previous line?
When I type a multiline command like
$ for i in 1 2 3; do
for> echo $i
for> done
1
2
3
and then recall the command with up-arrow, backspacing stops at the start of the last line (i.e. after erasing done). Is there a way to make the zsh line editor…

Jens
- 69,818
- 15
- 125
- 179
3
votes
2 answers
The \b in my code won't bring the cursor back
#include
int main()
{
int answer;
printf("Please insert your desired budget :"); //normal printf functions.
printf(" $_____\b\b\b\b"); //This should move the curser back 4 spaces.
//The program outputs the line followed…

user1867232
- 51
- 2
3
votes
5 answers
Using backspace on VIM search and replace
What character do I use for the newline on Vim search and replace commands?
I'm trying to make this:
1,
2,
3,
4,
5
to this: 1, 2, 3, 4 ,5
So i thought of writing something like: :%s/$/\b/g
But it didn't work even if I set: :set magic.
How can…

user1410363
- 189
- 1
- 3
- 12
3
votes
1 answer
Keep Data in TextBoxes like on pressing BACKSPACE
I want to keep some informations in some TextBoxes if I go back to this page programmatically. On Page1 I enter the informations and if I click on the button I redirect to the next page, but if an error is in the informations (like text in TextBox…

Pali
- 1,337
- 1
- 14
- 40