Coder Social home page Coder Social logo

blame's Introduction

gold2silver1


Edit: thanks for the gold, kind stranger

Edit 2: oh wow! silver!? Thats insane!! I cant believe it, im famous! R.I.P my inbox LOL! Thanks so much to the kind stranger that took their time and money (silver costs money) to give this stupid repo silver that took me 4 seconds to commit

blame's People

Contributors

dalphat avatar deflatedpickle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

blame's Issues

Scrollbar Sizing, Increments and Limits

The scrollbar handles don't increment properly over the widget and aren't always properly sized. They also don't have scrolling caps, so scrolling too far will crash the program if there's no more content to scroll to.

Segmentation Fault when Experimenting with Dim

Platorm: Devuan GNU/Linux, x86_64 architecture
Compiler: gcc version 8.3.0 (Debian 8.3.0-6)
Runtime stack: LXTerminal (though this shouldn't matter) on top of XOrg.
Conditions leading up to the segfault: I am pressing twice and then pressing the DOWN arrow key. I even tried to select a file on the left-hand panel first, but the error persists.
Call stack:

Program received signal SIGSEGV, Segmentation fault.
Blame::Widgets::List::redraw (this=0x5555555e76b0) at /home/chozorho/git/blame/src/main/cpp/widgets/List.cpp:32
32	                        + this->items[item + this->view_area_offset_y][i + this->view_area_offset_x];
(gdb) where
#0  Blame::Widgets::List::redraw (this=0x5555555e76b0) at /home/chozorho/git/blame/src/main/cpp/widgets/List.cpp:32
#1  0x0000555555569105 in Blame::Console::redraw (this=0x5555555c3e70) at /home/chozorho/git/blame/src/main/cpp/Console.cpp:192
#2  0x000055555556d7c4 in Blame::Widgets::Widget::move (this=0x5555555ee6b0, direction=Blame::Util::DOWN) at /home/chozorho/git/blame/include/widgets/Widget.hpp:53
#3  0x0000555555572fda in Blame::Widgets::Scroll::move (this=0x5555555ee6b0, direction=Blame::Util::DOWN) at /home/chozorho/git/blame/src/main/cpp/widgets/Scroll.cpp:119
#4  0x0000555555568ca0 in Blame::Console::mainLoop (this=0x5555555c3e70) at /home/chozorho/git/blame/src/main/cpp/Console.cpp:124
#5  0x000055555555f393 in main () at /home/chozorho/git/blame/demos/dim/main.cpp:145

I am still analyzing the source code to determine why this is happening and whether it is a valid input. It appears to be that the system simply isn't loading the file properly (I cannot get anything to display on the right-hand window).

Is this a problem specific to my platform, or have you also seen it? Can you give any insight on it? Otherwise, I will see if I can solve it myself.

Console Flickering

The redraw method on the console is way too taxing to put in a draw loop and having widgets request a redraw of the console is still too taxing to actually use.

Solutions:

  • Proper double-buffering
  • Change redraws to send struct packets to a redraw stack managed by the parent unless there is no parent, in which it'll send the stack to the console for drawing

Rich Text

The text widget should be able to handle rich text formatting, using ANSI codes. When text is inserted, it should be stripped of the ANSI codes, whilst adding those and hints to where they should be, then when the text is inserted into the grid, it should consult where the ANSI codes were stored and apply the right code to the text being inserted.

Dim breaks terminal cursor

Platorm: Devuan GNU/Linux, x86_64 architecture
Compiler: gcc version 8.3.0 (Debian 8.3.0-6)
Runtime stack: LXTerminal (though this shouldn't matter) on top of XOrg. But I also tested on a gentoo machine with no XOrg and the same phenomenon occurred.

When I run the blame demo text editor dim and press q to exit, the cursor is no longer displayed in my terminal session. I can still type commands and the terminal works successfully, but the cursor that had been displayed has disappeared. This appears to be a purely graphical glitch, but it does not happen when running the other demo. I hope to investigate this as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.