27

I shouldn't be surprised... but I'm surprised that there is support for emojis in ubuntu

Comments
  • 3
    I'm surprised that it works.
  • 2
    How did you ?
  • 3
    Why exactly? There's been utf8 support in Linux for ages, and emojis behave like any other utf8 characters. It's up to your terminal to display them as colourful icons instead of "undefined character", but that's all done by a single package on a window manager -level.
  • 1
    @hitko Could you elaborate on that "window manager-level" ? I thought that it's the app doing the drawing (never done Linux dev) , and window manager is just *somehow* helping making it all look nice and smooth.. Have you got any sauce on these things ? Thanks!
  • 2
    @shinobiultra OS kernel takes care of hardware-level operations, and on top of that, there's a display server + window manager (the two can be either separated or coupled). Display server and window manager provide basic drawing APIs, translate from window coordinate system to screen coordinate system, render basic elements (fonts, blobs, ...), make sure one process doesn't taint window of another proces, and optimise drawing requests for GPU rendering. Most commonly used Linux package for this is X11 / x.org server (there's plenty resources about it online).

    When you make an application, you commonly use some kind of framework (look up Qt, Swing, GTK), which includes higher-level UI components (buttons, panels, ...) together with utils to request new windows, handle user input signals, calculate dimensions, ... Very simplified, when you make GUI using Qt, you tell Qt to display a button, and Qt tells user's display server to draw square, and render some text over it using font A.
  • 1
    Well unless you explicitly run "sudo apt-get install cowsay", you wouldn't be privilege to see that kind of art.

    Leaving aside the fact that cowsay is not pre-installed in Ubuntu... Look for the documentation, there are a lot of funny figures to use instead of the classic cow.

    Bonus tip: do "sudo apt-get install sl", and thrust me, you'll never be more careful about doing a typo of "ls" xD
  • 1
    @marcorodnav ... why do u want him to thrust u? 😨😨🤔🤔
Add Comment