While typing in the xterm js terminal (Android chrome) - backspace is giving previous command history - xtermjs

I am using ng-terminal in my project. I observed this unexpected behaviour when I use terminal in android chrome. When I backspace in the terminal, I erase previous command input by 1 character and keep going to previous command history.
Browser and version: Android Chrome - 109.0.5414.46
xterm.js version: 5.0.0
The key issue I think we're facing, aside from the behaviour being odd, is the backspace buffer. I suspect that the keyboard has its own buffer of text that isn't being cleared when the app decides to consume the text, and when you backspace, it moves back in to this buffer This is why each word reappears when you backspace.

Update the terminal emulator to a newer version As newer version may include fixes or issues like this. It is possible that there may be a configuration option of setting that you can use to change the behaviour of the back space key in the terminal emulator.

I've actually encountered this bug too and its super annoying, I reported it onto cockpit since I toughed it was problem in their code, but turns out that gboard and xterm.js are kind of broke and I don't think there is a fix for this yet.
Github issue on cockpit: https://github.com/cockpit-project/cockpit/issues/18138

Related

How do I properly enable ANSI escape sequences in cgdb?

I am using CGDB version 0.6.7 (latest available from apt) on WSL2. Colors are showing properly in the code window, but I see sequences like [34m in the lower window. See the screenshot below:
The only way I have found to get rid of these is by using the command set style enabled off. However, it would be nicer if it just worked instead of having to disable the feature altogether. How can I set this up so that the escape sequences work properly in the lower window?

CodeLite 12.0.2 : nothing in Editor

I wondered if anyone could help me with a strange bug I am having with CodeLite, which I am using as C IDE.
Basically nothing displays in the right side window editor when I open source files. This also happens when trying to change the fonts etc (this is where i looked first), whereby no preview displays.
Of possible note, that this absence of displayed text also occurs for example texts such as the one during the set up, as well as the pop up "Colours and Fonts".
The rest seems to work correctly, I was able to compile and run a project in the workspace for which I knew no edits needed to be made.
I am running Windows 7 professional 64 bits and i have not observed any issue elsewhere, only with CodeLite. I used the 64 bits installer to install CodeLite 12.02.
Attempted so far: restart computer, uninstall / reinstall CodeLite. Obviously looked up google, stackoverflow and CodeLite forum, without success finding anything similar.
Any idea where I should look for ways to solve this issue ?
Screenshot of CodeLite with a an example main.c open in editor but not showing content:
Screenshot of actual content of example main.c (hello world):
Screenshot of CodeLite initial set up, also showing no example text:
Screenshot of CodeLite "Colours and Fonts" pop up, also showing no example text:
May be it's late, but it happened that I solved the issue. I experienced the same problem with the latest CodeLite v15.0.3 at the time of writing. I also have Windows 7 64 bits and nothing was shown for the text of any opened source file.
Solution:
Open Settings > Preferences > Misc
and simply uncheck this setting:
[ ] Windows Only: use Direct2D editor drawings
It helped me.

Dart app not showing anything in dartium [duplicate]

my Dartium web browser suddenly stopped displaying the content of Polymer application. Even the basic dart-polymer template project (that reversing of text) is not displayed. If you move the cursor to the position of a input box, it changes shape accordingly. Chrome works well.
I can't even remember the action which lead to this. Does Dartium perform auto updates? Yesterday it worked well, then I put the computer to sleep and came today and it doesn't work. I've tried to restart, reinstall etc. Hopeless...
Thanks for ideas
Rene
I recently ran into the same problem. Updating Dart Editor fixed the issue (under Help -> About Dart Editor).

Selenium-webdriver 0.1.4 broken with Firefox 5

I'm having kind of a big problem that I need to solve pretty quickly, but I'm just not sure how.
Right now I've got an app that's stuck using the selenium-webdriver gem at v0.1.4. I'm using Ubuntu 10.10 and the Firefox Stable PPA. A few nights ago, Firefox forced their new v5.0, and now the Webdriver extension in Firefox is broken. That basically means that when I run Cucumber tests, Firefox will launch, but it won't be able to do anything, since the Webdriver is disabled.
Now, I've been watching for days, and it looks like the folks over at Selenium have updated their 0.2.x release to be compatible with Firefox 5. But I'm hesitant to upgrade what appears to be a significant version increase. I've tried downloading Firefox-4.0 from the FF website, but from what I can tell they just sneak it in as FF5 (every time I launch FF4 directly, it still launches FF5). I've also tried to use the Force Version feature in Synaptic, but FF4 isn't available there either.
I either need to find a hack to fix webdriver 0.1.4 or downgrade to FF4. Does anyone have any advice?
====================================
Edit: Some of the above was written in frustration amid a number of dependency issues, and a lot of it was from my own misunderstanding. I meant no offense, and am kicking myself for not seeing was staring me right in the face. I've toned down my rant. Selenium and Firefox are solid products, and I'm just glad I got them working again.
Solved the problem by just upgrading to >= 0.2.2. I thought the version jump from 0.1.x to 0.2.x indicated potential compatibility issues that I wasn't prepared to deal with at the time.
There's a post here by a user named jarra that appears to have directions for installing FF4 back to the mac and then forcing selenium to use FF4.
Do you mean that the extension was disabled due to incompatibility?
Then you can force compatibility by adding the entry extensions.checkcompatibility.5.0 to about:config, with value false. Restart Firefox. If the addon remains disabled, install MR Tech's Toolkit addon, restart Firefox, right-click on the addon, "enable incompatible addon" (or something else). After restarting, Webdriver should work fine.

application wont start or load in blackberry simulator

I'm developing an application on two different machines (home and work) and while the home one seems to run just fine, the work one is, for lack of a better word, possessed. It has been exhibiting the following issues:
When loading the application, it will start at the simulator's main screen instead of starting the application at random intervals. You can start the application and have it work fine, then close the simulator, reload, and have the same codebase not load.
Going to applications doesn't show the application itself, in fact it never does.
Trying to load the applications cod file (File->load java program) never works. Tried the steps in this thread, with unreliable results.
Extremely small changes, such as modifying the value of a width variable by one, commenting out a function such as makeMenu or adding a button will cause code to no longer work, with no errors shown by the IDE.
Using clear.bat with sometimes work, sometimes not. Same with manually removing all files with the name of the project.
reinstalling the eclipse environment and the blackberry plugin did nothing more then burn off an hour.
having "load on startup" in the blackberry_app_descriptor.xml file is set.
Both systems are using Eclipse 3.5.1, BB plugin for eclipse 1.1 beta, Java 4.5 with the 8300 simulator. THe only difference that I am seeing is the operating system between the two systems. The work one being XP Sp3, home being vista. THe vista one isn't perfect, but I can test variable changes without flipping a coin to see if the app will even load or not.
I've tried the solutions that were similar on this forum, such as this one, but it looked to be that those solutions are dated as none of the options for the steps existed in my eclipse install.
So has anyone ran into such baffling behavior, and can it be fixed? Anything that I might have missed that could be tried?
I've been seeing this behavior with the new 1.1 plugin, the application doesn't load on startup and the FIle->load java program doesn't help. For me, the solution was I have to run a clean build every time, that is the eclipse clean and build instead of just build, not the clean.bat... Hope this helps!
Try clearing resources that have improper naming structure in your projects stuff with spaces or special character in the name of the file.
It took me two days to figure out.
One solution i got regarding your problem.
As I See Please run the application first time as Run as blackberry simulator
that is got start and here pick up run and then Run as Blackberry simulator

Resources