vim backspace leaves ^?

^? is the delete character; the backspace character is ^H. Only one of these is recognized by your terminal as “erase”, and this is determined by the terminal settings, stty. (bash and other shells understand this as a problem and do special things to recognize both) If your terminal emulator (ssh, putty, xterm, whatever) disagrees … Read more

The “backspace” escape character ‘\b’: unexpected behavior?

Your result will vary depending on what kind of terminal or console program you’re on, but yes, on most \b is a nondestructive backspace. It moves the cursor backward, but doesn’t erase what’s there. So for the hello worl part, the code outputs hello worl ^ …(where ^ shows where the cursor is) Then it … Read more

Detect backspace in empty UITextField

Swift 4: Subclass UITextField: // MyTextField.swift import UIKit protocol MyTextFieldDelegate: AnyObject { func textFieldDidDelete() } class MyTextField: UITextField { weak var myDelegate: MyTextFieldDelegate? override func deleteBackward() { super.deleteBackward() myDelegate?.textFieldDidDelete() } } Implementation: // ViewController.swift import UIKit class ViewController: UIViewController, MyTextFieldDelegate { override func viewDidLoad() { super.viewDidLoad() // initialize textField let input = MyTextField(frame: CGRect(x: 50, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)