What is this weird character I found by smashing my keyboard? - unicode

While I was smashing my keyboard, it put a character that I haven't seen before. It's really weird, because when I search it, or put it on a text area, the texture just disappears. When I search it, it appears again, but Google just thinks it's a question mark (?).
Here's a photo of the character before being a question mark:
Also, when I put the character in the upper part of Chrome (where the url is), it appears. That's how I got the screenshot...
Here's the character if you want to copy it:

Or download this file into Notepad.

As 0x5453 notes, this is DELETE (U+007F). On Windows you would get this if you held down the Alt key and pressed 1, 2, 7 on the numeric keypad. See Alt code on Wikipedia.

Related

How do I stay on the current search match?

I have not been using vscode for more than a year. Today when I used it again I can't find out how to stay on the current match for a search. Very confusing:
Control-F
Enter word to search for
Hit ENTER until the wanted match is highlighted
Hit ESCAPE
So far everything seems ok. But. When I hit for example LEFT-ARROW (or any other keyboard key) the character position jumps back to where I was before I started 1).
What is going on? I can't remember it worked like this?

Is it possible to move the text cursor/ caret multiple characters at once using C++?

I'm writing an application that pastes strings into any given editor. After selecting something to paste my application programmatically looses focus, giving it to the application that had focus before. It then sends Ctrl+V to the OS to paste it in the other application. I want to be able to set the position of the cursor after pasting. Currently a pasted text will always leave the cursor at the end of the text.
I already tried sending multiple Arrow Left presses to the OS, so for example if I wanted:
Hello $CURSOR_POSITION$World
54321
I would send 5 times ArrowLeft after pasting "Hello World". This is very slow tho as every single Arrow Left key is processed serparetly (moves left about once per second). As the strings can get very long using Ctrl+ArrowLeft to skip entire words does not solve the problem.
I already looked into ANSI-Codes, they only seem to work in consoles though, I want it to work in every editor.
Is there a way to achieve this using C++? Something like moveCursorLeft(5)?
Thanks in advance!

IE9 : Arrow Keys not working in text area field in popups

We are just testing our application on IE9 and I found an issue regarding the arrow keys behaviour in text area in popup window.
Two arrow keys are not working fine:
1) Left arrow key - When we enter some multiline text in the text field and try to move the left arrow key in last line. Repeated left arrows movement on the line result in the cursor going to the left THEN back to the end of the same line. It does not move to the last of the previous line (as expected).
2) Up Arrow Key - When we enter some multiline text in the text field and try to move to the previous line using the Up arrow key. It does not work.
It will be great if somebody can help me on it.
Thanks in Advance :).
Regards
I have seen many posts on this in other forums, and had some issues with it in web-based applications we use at my work. It seems to be something weird associated with IE9 and ieSpell.
While some forums have said pressing F7 allows you to get around the problem, it doesn't actually solve it, and there doesn't seem to be any acceptable permanent solution. Some say to dump your browsing history, others to turn caret browsing off in IE options.
Generally, there are lots of suggestions to get around the problem, but none to actually solve it.

Is there a way to mark specific lines in BBEdit and then iterate through them?

I often find myself jumping between several parts of a lengthy document, and I've found no streamlined way of handling this. I've previously used TextPad for PC, and it had a great feature called Bookmarks:
Press a keystroke, and the current line is marked. The bookmark shows as an arrow in the gutter.
The same key toggles the marker off again.
Another keystroke sends the caret down to the next bookmark.
Yet another keystroke sends the caret up to the previous bookmark.
Is there anything like this in BBEdit? I loved that feature of Textpad, but I haven't found another editor that has something similar. Currently I use the awkward substitute of typing three slashes /// at a place I want to jump back to, then using Ctrl+F to re-find them, but that's a lot of keystrokes to set/remove markers and to iterate through them.
Thanks!
I think what you are after is BBEdit Markers.
This article is a good place to start: macdrifter.com/2012/01/bbedit-markers.html

How to test Unicode "non-chars" (lsep, rsep etc.)?

Is there an application or a utility for generating non-characters, such as U-2028 and U-2029 (line separators)?
My preferred method is to type into a browser address bar eg:
javascript:'A\u2028B\u2029C'
and then copy and paste them from the page.
If you really need to enter such characters a lot, you could potentially use MSKLC to create a keyboard layout that can type them directly. For example on my own keyboard layout I've got non-breaking-space, zero-width-space and half-space on shift and alt combinations with the space bar.
Note that browser support for displaying replacement glyphs for these particular characters may vary, so if you don't see them, try another browser. They are visible for me in Chrome (52.0.2743.116).
If you are with Windows, you don't need external tools: press alt, and + sign, and the hex code.
If you need \u2028, you press Alt and +, and 2028, the sign appears.
It depends on the code page you are using. Please refer to
https://en.wikipedia.org/wiki/Alt_code
and
https://en.wikipedia.org/wiki/Code_page
In my case, with my code page, I have ý when typing alt code 2028.