Search
Get Started
PD
Program Dream
•
4y ago
anic17
Newtrodit-LCL
This is the channel for the ongoing development of Newtrodit
-LCL
, a compatibility layer for Newtrodit made by
@earth
's bird and
@earth
's god
Program Dream
Join
We’re a community of programmers. We’re developing 🌎 Websites, 🎮 Games, 🤖 Discord bots, and various applications in
2,692
Members
View on Discord
Was this page helpful?
Yes
No
D
Dumb Bird
•
10/8/22, 3:17 PM
@earth
's god I
'm going to make a new branch for LCL called NCurses
. I
'll be reworking everything to use NCurses
, this
(if done correctly
) will fix many bugs and issues we
've faced on the Linux side
A
anic17
OP
•
10/8/22, 3:18 PM
:blobhappy
:
A
anic17
OP
•
10/8/22, 3:22 PM
Glad to hear this
A
anic17
OP
•
10/8/22, 3:22 PM
Hope we can make it a decent editor
D
Dumb Bird
•
10/8/22, 3:24 PM
Me too
!
D
Dumb Bird
•
10/8/22, 3:24 PM
Also with NCurses setting color at a specific position is possible
A
anic17
OP
•
10/8/22, 3:24 PM
Nice
A
anic17
OP
•
10/8/22, 3:24 PM
That will help a LOT in performance
A
anic17
OP
•
10/8/22, 3:25 PM
I
've been also thinking of adding 24
-bit support if the terminal supports it
D
Dumb Bird
•
10/8/22, 3:25 PM
Pretty much every
major
bug we
've come across can be fixed by using NCurses
A
anic17
I've been also thinking of adding 24-bit support if the terminal supports it
D
Dumb Bird
•
10/8/22, 3:25 PM
That would be nice
. NCurses wraps around terminfo we can detect if the terminal supports 24
-bit color
A
anic17
OP
•
10/8/22, 3:27 PM
Same for Windows
, detecting if 24
-bit color is available is simple
D
Dumb Bird
•
10/8/22, 5:53 PM
Added some really basic NCurses support
D
Dumb Bird
•
10/8/22, 5:53 PM
Had my machine crash way to much though
D
Dumb Bird
Added some really basic NCurses support
A
anic17
OP
•
10/8/22, 5:54 PM
Sounds good
D
Dumb Bird
Had my machine crash way to much though
A
anic17
OP
•
10/8/22, 5:55 PM
That doesn
't sound good tho xd
D
Dumb Bird
•
10/8/22, 5:55 PM
NCurses gives many helpful things to the table though
A
anic17
That doesn't sound good tho xd
D
Dumb Bird
•
10/8/22, 5:55 PM
Lol
D
Dumb Bird
•
10/8/22, 5:55 PM
I
'm not even sure why it crashes my computer
, trying to find the issue now
D
Dumb Bird
NCurses gives many helpful things to the table though
A
anic17
OP
•
10/8/22, 5:55 PM
Can NCurses getch detect shift
?
A
anic17
Can NCurses getch detect shift?
D
Dumb Bird
•
10/8/22, 5:55 PM
Yes I think so
A
anic17
OP
•
10/8/22, 5:55 PM
Like
, differentiate Ctrl
-S from Ctrl
-Shift
-S
D
Dumb Bird
•
10/8/22, 5:56 PM
Yes
D
Dumb Bird
•
10/8/22, 5:56 PM
NCurses should be able to detect modifier keys separately
A
anic17
OP
•
10/8/22, 5:57 PM
D
Dumb Bird
•
10/8/22, 5:58 PM
NCurses also have functions for detecting numpad buttons
D
Dumb Bird
•
10/8/22, 5:58 PM
like it can detect the difference between pressing 1 on a keyboard and 1 on the numpad
A
anic17
OP
•
10/8/22, 5:58 PM
That is also very good
D
Dumb Bird
•
10/8/22, 6:22 PM
Ok stopped the crashing of my computer part
. Now nothing gets displayed
, which I also think I know the reason for
.
A
anic17
OP
•
10/8/22, 6:23 PM
The only thing I don
't like is that we
'll have to replace all printf statements to printw
A
anic17
The only thing I don't like is that we'll have to replace all printf statements ...
D
Dumb Bird
•
10/8/22, 6:27 PM
I don
't think we need to
, do we
? It seems printf works
D
Dumb Bird
•
10/8/22, 6:28 PM
A
anic17
OP
•
10/8/22, 6:28 PM
What about fputs and fwrite
A
anic17
What about fputs and fwrite
D
Dumb Bird
•
10/8/22, 6:28 PM
Not sure about them
A
anic17
OP
•
10/8/22, 6:28 PM
What is that depricated message
D
Dumb Bird
•
10/8/22, 6:28 PM
Something I implemented for debuging
D
Dumb Bird
•
10/8/22, 6:28 PM
To find what parts of the project use old functions that get replaced by NCurses
A
anic17
OP
•
10/8/22, 6:28 PM
Ah ok
A
anic17
OP
•
10/8/22, 6:29 PM
Nvm I thought it was from curses
A
anic17
OP
•
10/8/22, 6:29 PM
Sorry lol
D
Dumb Bird
•
10/8/22, 6:29 PM
No worries
D
Dumb Bird
•
10/8/22, 6:29 PM
I can see the confusion
D
Dumb Bird
•
10/8/22, 6:29 PM
Ah we do have to use printw
D
Dumb Bird
•
10/8/22, 6:30 PM
How would that translate to Windows
? Maybe we write a custom print function that checks if you
're on Windows or Linux
?
D
Dumb Bird
How would that translate to Windows? Maybe we write a custom print function that...
A
anic17
OP
•
10/8/22, 6:31 PM
yeah
A
anic17
OP
•
10/8/22, 6:31 PM
Same arguments as printf
, with an
#ifdef inside
D
Dumb Bird
•
10/8/22, 6:32 PM
Yep that
's what I was thinking
A
anic17
OP
•
10/8/22, 6:32 PM
With a va
_list
D
Dumb Bird
•
10/8/22, 6:32 PM
What should we call it
?
, Newtrodit print
A
anic17
OP
•
10/8/22, 6:32 PM
Simply
Next page
nprint
nprint
print
print