Author Topic: Using Fbiterm, Rotate Frame Buffer Console 90 Degrees?  (Read 4472 times)

renick

  • Newbie
  • *
  • Posts: 11
    • View Profile
Using Fbiterm, Rotate Frame Buffer Console 90 Degrees?
« on: February 04, 2008, 09:06:07 am »
Frustrated with the slow speed of any X11 app on my zaurus, I'm trying to set up a Japanese console environment. fbiterm appears to display Japanese text fine, except that it's portrait rather than landscape. This won't do. How do I rotate the frame buffer by 90 degrees so that it displays landscape?

pelrun

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Using Fbiterm, Rotate Frame Buffer Console 90 Degrees?
« Reply #1 on: February 04, 2008, 08:46:27 pm »
Since fbiterm directly addresses the framebuffer, there isn't a nice commandline option to rotate the display - support needs to be coded into the app.
SL-C3100 with usb power mod running debian eabi
pdaXii13 still on the NAND for dualbooting
16GB SDHC! (a new one, after I sat on the old one and it went kaput)
D-Link 660 wifi, Socket Bluetooth rev H
External 9800mAh LiIon battery and slimline dvd drive
Homebrew microphone and remote

pelrun

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Using Fbiterm, Rotate Frame Buffer Console 90 Degrees?
« Reply #2 on: February 06, 2008, 01:21:02 am »
Ok, attached is a preliminary binary which will work on the Z in landscape orientation.

It seems pretty fast, but it could probably do with optimisation. Also, it won't work on a native-landscape (i.e. non-Z) display anymore... it doesn't scroll the right way  Once I've fixed that up I'll put a patch together.

For future reference, you need to have a UTF-8 locale set (e.g. LANG=en_US.UTF-8) before starting fbiterm; I wasted a few hours trying to get japanese characters to display before I figured that out. Changing LANG inside fbiterm isn't enough.
SL-C3100 with usb power mod running debian eabi
pdaXii13 still on the NAND for dualbooting
16GB SDHC! (a new one, after I sat on the old one and it went kaput)
D-Link 660 wifi, Socket Bluetooth rev H
External 9800mAh LiIon battery and slimline dvd drive
Homebrew microphone and remote