Commit Graph

58 Commits

Author SHA1 Message Date
pierre
55665c6713 Set local variable s to empty string at entry of transform_cp437_to_UTF8 function
git-svn-id: trunk@20772 -
2012-04-09 21:54:19 +00:00
florian
16b47d4e07 * patch by Nikolay Nikolov to use a hardware block cursor on the
linux console, resolves #19259

git-svn-id: trunk@17516 -
2011-05-20 20:39:43 +00:00
olivier
2e8a93da16 * tune new variable TerminalSupportsBold and TerminalSupportsHighIntensityColors
for BeOS and Haiku.
  * BeOS : the terminal is very limited. Disabling both give best result.
  * Haiku : Haiku's terminal claims to be xterm but has it's own problems.

git-svn-id: trunk@13741 -
2009-09-19 16:10:36 +00:00
florian
07ef0c33df o another linux console patch by Nikolay Nikolov:
* disabled linux VCSA output in UTF-8 mode, because it does not do any translation 
  and assumes that the font is cp437, or similar, which looks horrible on fonts 
  (like fedora's default latarcyrheb-sun16), which are designed only for unicode 
  support and have no similarity at all to cp437. We already can display all the 
  cp437 characters in UTF-8 mode (including the low 32 characters), in case the 
  font is cp437, and the UTF-8 translation provides better approximation (e.g. 
  for the line drawing characters) if the font is not cp437.
* do not "restore" the linux system font in SysDoneVideo in UTF-8 mode, 
  since we didn't change the font on startup
* added try_grab_vcsa to try harder to open VCSA in the linux IDE user 
  screen restore code. While VCSA is no longer needed in the video unit on 
  UTF-8 systems, the IDE still needs it, because it's the only way to provide 
  the "restore user screen" functionality on the linux virtual console.

git-svn-id: trunk@13726 -
2009-09-16 19:58:42 +00:00
florian
a023c165da o patch by Nikolay Nikolov to make the text mode IDE look pretty under
modern Linuxes by a patch for UTF-8 console output. 
  Previously, only BeOS used UTF-8. Tested with:
   - the linux console
   - xterm
   - gnome-terminal
   - konsole
   - rxvt-unicode
  using Fedora 11.
  Tested with
   - gnome-terminal
   - xterm
   - konsole
  using Ubuntu 9.04
Known "features": 
  * high intensity colours were actually normal intensity, with a bold attribute set. 
    This worked fine under gnome-terminal, but xterm didn't have bold versions of all cp437 characters, 
    which screwed up the window borders in the IDE. And although konsole had them, I didn't like the font - 
    it converted all the double window borders to a very thick single-line border. 
    So I disabled the bolding of high intensity colours in all X11 terminals (TERM=xterm) 
    and replaced it with another ANSI attribute, that actually sets high intensity 
    colours, but is not (in theory) supported by all terminals. The linux console doesn't 
    support it - it actually wants a bold attribute, to set high intensity, 
    so that's why I enabled it only for X11 terminals. All the ones, 
    that I tried, worked fine (xterm, gnome-terminal, 
    konsole, rxvt-unicode, also the plain old rxvt, with a non-UTF-8 locale).
  * Fedora 11 by default uses a 512-characters font, called latarcyrheb-sun16 
    for the linux text mode console, which disables the high intensity colours, 
    effectively reducing the set of available colours to only 8. 
    This is a hardware limitation of the VGA hardware and can be avoided by 
    using a 256-character font. It does not need to be cp437, 
    but it has to have an unicode mapping.
  * I haven't tried other linux distros (and unix-like OSes, i.e. FreeBSD and Mac OS X) - 
    although they should work in theory, they might look bad, due to different fonts, etc. 

git-svn-id: trunk@13651 -
2009-09-05 14:54:22 +00:00
peter
73871b64ce * BeOS/Haiku updates from Olivier Coursière
git-svn-id: trunk@9880 -
2008-01-23 15:37:25 +00:00
daniel
f60b66fba0 * Modify code to set xterm in rigth font.
git-svn-id: trunk@6243 -
2007-01-28 16:04:34 +00:00
daniel
6c92edea04 * Send correct amount of characters for custom font.
git-svn-id: trunk@6235 -
2007-01-27 20:34:41 +00:00
daniel
ac23d1ea3c * Mouse unit is solely responsible for xterm mouse.
* Improve detection of xterm mouse
  * Improve detection of gpm mouse

git-svn-id: trunk@6082 -
2007-01-19 21:59:24 +00:00
Jonas Maebe
9e801eb048 * removed/conditionalised several unused variables
git-svn-id: trunk@4199 -
2006-07-14 20:44:57 +00:00
daniel
4a3248bc08 + Correct behaviour when initialization fails.
git-svn-id: trunk@3841 -
2006-06-11 09:00:19 +00:00
daniel
aa93e6a11e * Fix window resizing in X.
git-svn-id: trunk@3767 -
2006-06-02 20:46:46 +00:00
daniel
111fc2ca42 * Codepage code had a bug
git-svn-id: trunk@3434 -
2006-05-06 18:39:32 +00:00
daniel
faa8f2354b * Force VGA colours, regardless of xterm background colour.
git-svn-id: trunk@3346 -
2006-04-27 21:00:46 +00:00
daniel
b03ab6296f * Fix exiting acs after screen update
git-svn-id: trunk@3345 -
2006-04-27 20:15:57 +00:00
daniel
f009b5700a * Unix video unit character set conversion overhaul
git-svn-id: trunk@3243 -
2006-04-17 12:39:02 +00:00
daniel
e93081c0d0 * More video improvements
git-svn-id: trunk@3103 -
2006-04-01 10:24:22 +00:00
daniel
f1a5389b0b * Only update what is modified
git-svn-id: trunk@2707 -
2006-02-28 10:46:36 +00:00
daniel
740c68106b + Add pread/pwrite system calls
* Optimize video using pwrite

git-svn-id: trunk@2705 -
2006-02-27 23:18:35 +00:00
daniel
0c050527ca * 2.0 workaround
git-svn-id: trunk@2379 -
2006-01-29 18:15:50 +00:00
daniel
b53d90a328 * Comitted too quickly
git-svn-id: trunk@2371 -
2006-01-29 08:28:46 +00:00
daniel
c1e09fab0c * Fix 2.0.0 compat
git-svn-id: trunk@2370 -
2006-01-29 08:00:16 +00:00
daniel
bb797e93f0 * vcsa functionality moved into linuxvcs unit
* Reverse ifdef in gpm

git-svn-id: trunk@2366 -
2006-01-28 23:17:48 +00:00
daniel
c182af93ab * Overhaul of key recognition codes. Should recognize key much
better now, even without terminfo, which has been removed so another
    libc dependency is gone.

git-svn-id: trunk@2361 -
2006-01-28 22:21:28 +00:00
daniel
ea2af1b3aa + Much more agressive VCSA detection. Now works from inside Midnight Commander.
git-svn-id: trunk@2351 -
2006-01-27 10:46:26 +00:00
daniel
45d159eaad * Another libc dependency less
git-svn-id: trunk@2348 -
2006-01-26 22:14:46 +00:00
daniel
15e90d7f17 * Grab_vcsa utility that is supposed to be installed suid root.
It sets the permissions, in case you are logged in on the console,
    of your /dev/vcs and /dev/vcsa device to the permissions of your
    /dev/tty device, making sure programs using the video unit can
    use the Linux console mode instead of the Network mode.

git-svn-id: trunk@1927 -
2005-12-11 14:25:07 +00:00
peter
9ea69cfec9 * fix isatty return value checks
git-svn-id: trunk@1292 -
2005-10-05 06:50:16 +00:00
fpc
790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00
fpc
50778076c3 initial import
git-svn-id: trunk@1 -
2005-05-16 18:37:41 +00:00
peter
e417e34496 * truncate log 2005-02-14 17:13:06 +00:00
florian
080ed4548f * fixed raw mode for non i386 targets
* fixed some alignment issues
2004-12-28 15:30:04 +00:00
peter
9bc5c71ed9 * cursorx,cursory 0 based, fixes 3468 2004-12-26 12:22:05 +00:00
armin
c6e7e58903 * enable acs on xterm by default 2004-10-05 17:16:24 +00:00
armin
5c03484982 * SysUpdateScreen modified esi and edi 2004-10-03 20:16:43 +00:00
peter
cf15e8407e * isatty return cint again 2004-07-09 19:03:35 +00:00
daniel
74f637cb11 * gpm now uses a Pascal translation of libgpm instead of linking against
it.
  * isatty result type changed into boolean
2004-07-08 13:23:21 +00:00
daniel
4fb9894eff * Compilation fix. 2004-07-03 13:29:23 +00:00
marco
0610caa107 * termio unit 2003-11-19 17:11:39 +00:00
marco
0c999e0c9b * threads for FreeBSD. Not working tho 2003-11-17 10:05:51 +00:00
marco
63f6eeb35a * partial fix for bug #2212. 2003-10-26 15:32:25 +00:00
marco
dfff760c9a * small after merge fixes 2003-10-25 22:48:52 +00:00
marco
add1df1b27 * merged some fixes from 1.0.x 2003-10-24 17:51:39 +00:00
olle
527a79b0dc * changed i386 to cpui386 2003-10-17 22:10:30 +00:00
marco
7efaf7dee2 * Unix reform stage two. Remove all calls from Unix that exist in Baseunix. 2003-09-14 20:15:01 +00:00
armin
fff0626008 * added wrapoff to avoid problems in the ide with some terminal emulators 2003-03-26 12:45:21 +00:00
peter
9f31783a0a * old logs removed and tabs fixed 2002-09-07 16:01:16 +00:00
marco
5ce2af2aaf * Fix for corrupt color-attr after some ACS-mode changes. (Pierre, Strassbourg
meeting)
2002-07-06 16:50:17 +00:00
michael
e68b5a2ae4 + Removed defaultmode field from driver 2001-10-13 12:59:46 +00:00
michael
30ef883342 + Merged video mode selection/setting system 2001-10-06 22:28:24 +00:00