How can i write a null character on a macbook pro? Preferably using just the keyboard or something that i can reach everywhere, without using a 3rd party program.
feedback
|
|
You can do this with the Unicode Hex Input method (enable it in System Preferences -> Language & Text pane -> Input Sources tab, then select it from the menu item) by holding Option and typing "0000". Warning: the null character is not allowed in C-language strings (it's used to indicate the end of the string), so not all programs will cope with it. In TextEdit, for example, you can insert a null into a document, but when you save the document it'll only save the part before the null. | |||||||||||||
feedback
|
|
Depends on your terminal, in Terminal.app and Iterm2 you can use | |||||||||||||
feedback
|