Comments (3)
I'm not quite sure if I understand. When I'm erasing character with backspace the cursor is in front of such character. If it's in the beginning of the line the cursor move the the end of line before which I can see (unless it's not wrapping and the line extends out of the visible screen/terminal).
I can also see the character under the cursor (which the cursor is on top). So I'm not really sure what is required. Could you maybe provide some videos/gifs to better show the problem and maybe the solution which is probably in other terminal applications?
from gocui.
unless it's not wrapping and the line extends out of the visible screen/terminal
This
1 and 3 gifs show current behaviour, 2 and 4 desirable , in my opinion.
The start of line case
The middle/end of line case
from gocui.
Oh I see what you mean. Yeah, that's a problem.
The first one is actually a bug. It should move to that location, but because it's updating the coordinates directly and not using MoveCursor
it doesn't update view origin correctly.
The second one is a bit tricky though. I've created a quick fix for now, which you can test by getting gocui
from here:
https://github.com/dankox/gocui/tree/fix/move-cursor-when-no-wrap
It's working for me, but there is still one thing which I need to resolve and that is when the view's width is 1 character, it doesn't display correctly (or not the same way as before this fix). So I need to address that and then I will create PR.
But if you would be able to confirm that this works for you, that would be great.
from gocui.
Related Issues (20)
- [BUG] Parse() doesn't parse Alt, Shift modifiers and converts Ctrl to a key HOT 10
- [BUG] Unable to Fprintf to view HOT 3
- [BUG]Err Fprintln HOT 10
- Status of `awesome-gocui/keybinding`?
- [BUG] Mouse handling delayed in neovim terminal HOT 18
- detect when idle HOT 9
- [BUG] [REGRESSION] First line not rendered on MinGW HOT 3
- Allow removing view cursor to "un-highlight" all lines HOT 2
- Access other views from EditorFunc HOT 1
- [BUG] View Offset/Origin causes weird interactions between cursor and highlight/mouse
- Example with subprocess HOT 1
- Seeking guidance: "Status" view not updating HOT 7
- Processing input from a view HOT 1
- Adding Omnivore to projects using Gocui HOT 1
- [BUG] data race at each SetViewOnTop() HOT 1
- Help with selected row highlight HOT 2
- Setting empty view name panics
- [BUG] Text next to a frame is not displayed
- How Clear screen before going to new layout.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gocui.