Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

joclock #47

Open
stefaantruijen opened this issue Oct 27, 2014 · 7 comments
Open

joclock #47

stefaantruijen opened this issue Oct 27, 2014 · 7 comments

Comments

@stefaantruijen
Copy link
Collaborator

Joclock should be a builtin feature of jsh. Posting the command required to fire up joclock here for future reference.

xclock -norender -hd green -hl green -bg black -fg white -update 1 &

@jovanbulck
Copy link
Owner

Indeed 🕐 :p

We should then also state "there's even a clock!" in the man page

@stefaantruijen
Copy link
Collaborator Author

Definitely! I want to get on this asap. In the meantime, if someone is feeling a burning desire to take on this challenge themselves, please feel free to :)

@jovanbulck
Copy link
Owner

Go ahead! You'll have to hack a bit however, since there's currently no backgrounding so doing just parseexpr(xclock -norender -hd green -hl green -bg black -fg white -update 1") will hang. (You'll need a strclone function anyway for parseexpr on constant strings, see the rl_completion_built_ins branch.) You could also use some libc functions that pass the string to sh, but that's a bit cheating :p

--> in the meantime (before backgrounding is done) you could write you're own code that forks the xclock process, passing all the arguments, but doesn't wait for completion or so...

@jovanbulck
Copy link
Owner

Talking about easter eggs, I was also thinking of hacking the sl code to make it display an ASCII art 'jo-shell' banner instead of the train ;-) Shouldn't be too hard, I still got some old sl-hack code somewhere

@stefaantruijen
Copy link
Collaborator Author

What about putting the banner on one of the carts?

@jovanbulck
Copy link
Owner

🚂 We should fix the scale a bit more:

-------------------------------------------------------------------------------
      ====        ________                ___________
  _D _|  |_______/        \__I_I_____===__|_________|
   |(_)---  |   H\________/ |   |        =|___ ___|
   /     |  |   H  |  |     |   |         ||_| |_||
  |      |  |   H  |__--------------------| [___] |
  | ________|___H__/__|_____/[][]~\_______|       |
  |/ |   |-----------I_____I [][] []  D   |=======|__
__/ =| o |=-~~\  /~~\  /~~\  /~~\ ____Y___________|__
 |/-=|___||    ||    ||    ||    |_____/~\___/
  \_/      \__/  \__/  \__/  \__/      \_/
-------------------------------------------------------------------------------


        ____________________________________
   _____|                                   \________A
 =|        _                      __           __ __ |
  |       (_)____          _____ / /_   ___   / // / |
 -|      / // __ \ ______ / ___// __ \ / _ \ / // /  |
  |     / // /_/ //_____/(__  )/ / / //  __// // /   |
  |  __/ / \____/       /____//_/ /_/ \___//_//_/    |
  | /___/                                            |
__|__________________________________________________|_
  |__________________________________________________|_
     |_D__D__D_|       |_D__D__D_|       |_D__D__D_|                   
      \_/   \_/         \_/   \_/         \_/   \_/

-------------------------------------------------------------------------------

@jovanbulck
Copy link
Owner

Or use 2 trailers :

-------------------------------------------------------------------------------
      ====        ________                ___________
  _D _|  |_______/        \__I_I_____===__|_________|
   |(_)---  |   H\________/ |   |        =|___ ___|
   /     |  |   H  |  |     |   |         ||_| |_||
  |      |  |   H  |__--------------------| [___] |
  | ________|___H__/__|_____/[][]~\_______|       |
  |/ |   |-----------I_____I [][] []  D   |=======|__
__/ =| o |=-~~\  /~~\  /~~\  /~~\ ____Y___________|__
 |/-=|___||    ||    ||    ||    |_____/~\___/
  \_/      \__/  \__/  \__/  \__/      \_/
-------------------------------------------------------------------------------


    _________________              ___________________ 
   _|      _         \_____A     _|         _         \________A
 =|       (_)____          |   =|    _____ / /_   ___   / // /|
 -|      / // __ \ ______  |   _|   / ___// __ \ / _ \ / // / |
  |     / // /_/ //_____/  |    |  (__  )/ / / //  __// // /  |
  |  __/ / \____/          |    | /____//_/ /_/ \___//_//_/   |
__|_/___/__________________|____|_____________________________|_
|__________________________|___|______________________________|_       
   |_D__D__D_|  |_D__D__D_|        |_D__D__D_|  |_D__D__D_|
    \_/   \_/    \_/   \_/          \_/   \_/    \_/   \_/

-------------------------------------------------------------------------------

We could also add other information in the trailers, such as version nb, contributors, etc. Would be awesome :p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants