flat assembler
Message board for the users of flat assembler.
Index
> Linux > Any graphic apps in console linux? (no-x11/x*) |
Author |
|
gorshing 02 Jul 2004, 23:49
I'm working on that. But you might look into ncurses anyway. That is what I am writing ... a tutorial. Currently working on some macros, such as getmaxyx ...etc.
_________________ gorshing |
|||
02 Jul 2004, 23:49 |
|
fasm9 03 Jul 2004, 01:21
sorry, the limit of my expression,
i mean sort of these things: Pixel(raster image), Frame Buffer, allegro game library. -- regards |
|||
03 Jul 2004, 01:21 |
|
crc 03 Jul 2004, 05:31
Technically, you might find some programs that use SVGALIB, but there's not many of those. Console Linux *is almost always* text based; graphical apps (SVGALIB, DirectFB, X11, etc) are different in focus than console applications.
|
|||
03 Jul 2004, 05:31 |
|
fasm9 03 Jul 2004, 09:03
once, i thought so, and now, i don't think so.
linux FB enabled linux + qingy i guess something in kernel must be patched by FASM and re-kernel-compiled! To do so, FASM linux version need code improvement.. |
|||
03 Jul 2004, 09:03 |
|
crc 03 Jul 2004, 13:59
Quingy relies on DirectFB, there really isn't support for real graphics in the Linux kernel -- and that's the way it should be! You want as little as possible in the kernel, using libraries for everything else. Console != Graphical.
The kernel provides a framebuffer, but graphical programs written to use it are scarce. You could look at the 6.20 release of RetroForth for an SVGALIB based app. It starts from console mode, switches to a framebuffer, and when exited, returns to the console. IMO, that's the best way to handle graphics. |
|||
03 Jul 2004, 13:59 |
|
fasm9 03 Jul 2004, 23:31
no svgalib please! it has quite defect for security, though i love it.
it doesn't matter only if i am using single user mode or non networking environment but who know? IMHO, if svgalib,FB can do graphic, then FASM also can do it! [console] > [FB] > [console] (X) [always FB] (O) -- |
|||
03 Jul 2004, 23:31 |
|
crc 04 Jul 2004, 08:03
The biggest flaw in SVGALIB is the need for programs using it to be SUID (root). This isn't a big deal, since a program needs to call vga_init(), which switches it back to a user mode program. Seriously, EVERYTHING can be a security risk; but that doesn't mean we shouldn't use them.
|
|||
04 Jul 2004, 08:03 |
|
scientica 04 Jul 2004, 09:37
well, I'd guess you need to be root to write something to some /dev entry, maybe changing permissions (eg allow root group to rw, and the make your self a member of the root group, would be an easier way - if my guuess is correct
|
|||
04 Jul 2004, 09:37 |
|
crc 04 Jul 2004, 12:22
Quote: well, I'd guess you need to be root to write something to some /dev entry, maybe changing permissions (eg allow root group to rw, and the make your self a member of the root group, would be an easier way - if my guuess is correct You're right. That's why SVGALIB apps have to be SUID (root permissions) to initialize a framebuffer. Once the framebuffer is created, and memory mapped into the applications memory space, SUID is no longer needed, so permissions are reset to a standard user. If you're concerned about security, only run as root when you have no other choice. I'm not overly concerned since I'm the only user of my Linux system but some people have multiple users or are always connected to the internet, they should be concerned. |
|||
04 Jul 2004, 12:22 |
|
fasm9 04 Jul 2004, 14:22
i found good links for DFB
http://yuri.webhop.org/dfb4u.html For more, use directfb cvs version. 1. patch 2.6.7-bk16 to 2.6.7 (linux kernel) 2. patch fusion-linux-2.6.3 to linux-2.6.7-bk20+ck4 3. in DFB, ./configure --prefix=/usr --enable-multi --enable-zlib --with-gfxdrivers=nvidia(which is mine) for more: ./configure --help 4.try neptune-0.1.6 (i can't download 0.1.10) But without FASM, something will be lack i guess Edit: neptune is not a real DirectFB-based GUI, it still use X11 ;( , they said it is due to their limit to the various Graphic Drivers. ah, MenuetOS.. Last edited by fasm9 on 08 Jul 2004, 06:14; edited 1 time in total |
|||
04 Jul 2004, 14:22 |
|
crc 05 Jul 2004, 09:55
A better option would be to write a kernel FB interface IN FASM as opposed to using DirectFB which is written in C. Personally, I'm still of the opinion that a console is for text and graphical apps are not console apps. I might just use the kernel framebuffer directly to provide graphics in a future release of RetroForth -- I'm tired of depending on constantly changing, bloated libraries
|
|||
05 Jul 2004, 09:55 |
|
rob.rice 11 Sep 2004, 16:21
at http://linuxassembly.org in the asmutils there is an example of useing the frame buffer in assembly
|
|||
11 Sep 2004, 16:21 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.