tryjshell icon indicating copy to clipboard operation
tryjshell copied to clipboard

Bell char doesnt work

Open downloadpizza opened this issue 7 years ago • 6 comments

\b doesnt play sound, firefox beta mobile : 64

downloadpizza avatar Nov 27 '18 09:11 downloadpizza

Nvm our teacher is stupid

downloadpizza avatar Nov 27 '18 10:11 downloadpizza

Reopening because the real bell char \u0007 isnt played either

downloadpizza avatar Nov 27 '18 10:11 downloadpizza

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

rahmanusta avatar Nov 27 '18 12:11 rahmanusta

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

downloadpizza avatar Nov 27 '18 13:11 downloadpizza

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)

osmundf avatar Jul 23 '19 18:07 osmundf

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

downloadpizza avatar Jul 28 '20 19:07 downloadpizza