javaterminal / tryjshell

Try JShell on Web
http://tryjshell.org
MIT License
91 stars 13 forks source link

Bell char doesnt work #5

Open downloadpizza opened 5 years ago

downloadpizza commented 5 years ago

\b doesnt play sound, firefox beta mobile : 64

downloadpizza commented 5 years ago

Nvm our teacher is stupid

downloadpizza commented 5 years ago

Reopening because the real bell char \u0007 isnt played either

rahmanusta commented 5 years ago

It is a Java shell, how do you use \b ?

downloadpizza commented 5 years ago

First of all: i noticed \b isnt the Bell char like out teacher told US, second: System.out.println('\u0007') prints the Bell char

osmundf commented 5 years ago

I can confirm that the following does in fact cause the "bell": jshell> System.out.print("\u0007")

or jshell> System.out.print('\u0007')

I don't see how this can be implemented for tryjshell though ☺️ MacOS 10.14.4 + Java 11.0.2 (Oracle JDK)

downloadpizza commented 4 years ago

Ill look into ways to get it running, I might make a PR if I get something working