Conversation

Notices

  1. New Year's resolution: 80x24

    Monday, 31-Dec-12 14:15:45 UTC from identi.ca
    1. @climagic Honestly, I don't even use that on the console because framebuffer.

      Monday, 31-Dec-12 15:44:36 UTC from web
    2. @climagic @omni I shall repeat my twitter answer here: > apply tput co li $ 80 $ 24 $ > true

      Monday, 31-Dec-12 15:48:20 UTC from web
      1. @kamikaze What does that do? :P

        Monday, 31-Dec-12 15:49:15 UTC from MuSTArDroid
        1. @omni The $ symbolizes line delimiters. „apply tput co li“ is a command. It executes „tput co; tput li“. The following lines are the output, number of terminal columns and number of terminal lines. „true“ is just a dummy command that returns 0 like „:“.

          Monday, 31-Dec-12 15:51:38 UTC from web
          1. @kamikaze I do not have an "apply" command, what package does it come from?

            Monday, 31-Dec-12 15:53:31 UTC from web
            1. @toksyuryel The manpage states it originates from 4.2BSD. One of the original Berkley releases from 1983 and famous for introducing the BSD TCP/IP stack.

              Monday, 31-Dec-12 16:01:30 UTC from web
              1. @kamikaze Well that's hardly helpful. Though it suggests that it may simply not exist on Linux but I find that hard to believe. Wikipedia seems to lack an article on it as well, which is odd since they usually have articles about historical programs like that.

                Monday, 31-Dec-12 16:03:44 UTC from web
                1. @toksyuryel I wasn't aware that there is no GNU version of that. They probably have a different command that does something similar with different syntax. You could also do something like this: „for arg in co li; do tput $arg; done“. Note that tput is the important command. Apply is just a hack. tput appeared in 4.4 BSD and is also supplied with ncurses.

                  Monday, 31-Dec-12 16:13:15 UTC from web