diff --git a/processing/app/PdeEditorConsole.java b/processing/app/PdeEditorConsole.java index a46a62bb4..be91442c9 100644 --- a/processing/app/PdeEditorConsole.java +++ b/processing/app/PdeEditorConsole.java @@ -32,7 +32,8 @@ public class PdeEditorConsole extends Component { int scrollOffset; byte cline[] = new byte[4096]; - byte clength; + //byte clength; + int clength; boolean cerror; Color bgColor; @@ -220,8 +221,8 @@ public class PdeEditorConsole extends Component { g.fillRect(0, 0, imageW, imageH); for (int i = 0; i < lineCount; i++) { - //int ii = (firstLine + i) % maxLineCount; - int ii = (firstLine + i) + scrollOffset; + //int ii = (firstLine + i) + scrollOffset; + int ii = (firstLine + i + 1) + scrollOffset; while (ii < 0) ii += maxLineCount; if (ii >= maxLineCount) ii = ii % maxLineCount; @@ -289,7 +290,9 @@ public class PdeEditorConsole extends Component { } } else { + //systemOut.println(clength + " " + cline.length + " " + ((char) b[i])); if (cline.length == clength) { + //systemOut.println("expanding to " + (clength*2)); byte temp[] = new byte[clength * 2]; System.arraycopy(cline, 0, temp, 0, clength); cline = temp; @@ -304,12 +307,12 @@ public class PdeEditorConsole extends Component { } public void message(String what, boolean err, boolean advance) { - // under osx, suppress the spew about the serial port - // to avoid an error every time someone loads their app - if (PdeBase.platform == PdeBase.MACOSX) { - if (what.equals("Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path")) return; - if (what.equals("Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver")) return; - } + // under osx, suppress the spew about the serial port + // to avoid an error every time someone loads their app + if (PdeBase.platform == PdeBase.MACOSX) { + if (what.equals("Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path")) return; + if (what.equals("Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver")) return; + } int currentLine = (firstLine + lineCount) % maxLineCount; lines[currentLine] = what; @@ -318,8 +321,15 @@ public class PdeEditorConsole extends Component { if (advance) { firstLine = (firstLine + 1) % maxLineCount; //systemOut.println((err ? "ERR: " : "OUT: ") + what); - systemOut.println(what); + if (err) { + systemErr.println(what); + } else { + systemOut.println(what); + } scrollOffset = 0; + // added so for continual update of lines + currentLine = (firstLine + lineCount) % maxLineCount; + lines[currentLine] = ""; // make sure it's clear } update(); } diff --git a/processing/app/PdeEditorStatus.java b/processing/app/PdeEditorStatus.java index f1c04ecff..62eeaaf81 100644 --- a/processing/app/PdeEditorStatus.java +++ b/processing/app/PdeEditorStatus.java @@ -275,7 +275,7 @@ public class PdeEditorStatus extends Panel editField.setText(t.substring(0, start) + "_" + t.substring(end)); editField.setCaretPosition(start+1); - System.out.println("consuming event"); + //System.out.println("consuming event"); event.consume(); } else if (c == '_') { diff --git a/processing/todo.txt b/processing/todo.txt index 807989dbf..686c44648 100644 --- a/processing/todo.txt +++ b/processing/todo.txt @@ -6,22 +6,36 @@ X remove old examples from cvs X pmouseX and pmouseX should be colored with mouseX and mouseY X new html for export X new colors chosen by casey (replace pde.properties and buttons.gif) +/ disappearing text caret on win2k +/ works in 'insert' mode +X just disabled it ever hiding.. we'll see if it fixes +X flush() after every println() +X incremental printout +X uncovered bug with long line lengths in console +/ pmouseX problem reported by casey (in bugs.txt) +o images don't load during setup [reas] +X //This is not a problem -- Casey +X framerate() and framerate(15) +X delay() should sleep the thread [glen murphy] +X it's sucking cpu and won't open a window until the delay is up +X also don't delay on the first time through +X add framerate to colored things list -_ disappearing text caret on win2k -_ works in 'insert' mode -_ framerate() and framerate(15) -_ pmouseX problem reported by casey (in bugs.txt) + +0050 _ weirdness with mac swiss-german keyboard on []{}| _ several examples broken (note from creas) in bugs.txt +_ go through the bboard and make sure everything up to date here +_ see if moved topics need to be deleted as well +_ (log in from another machine as guest) + //////////////////////////////////////////////////////////////////// BAGEL / bugs _ getting mouse movement outside the window -_ delay() should sleep the thread [glen murphy] -_ it's sucking cpu and won't open a window until the delay is up _ is quad strip broken or not behaving as expected? (me) _ may be correct, it worked for nik _ font smoothing (unless hint SMOOTH_IMAGES enabled) is broken @@ -188,7 +202,6 @@ _ when missing a closed brace, often has compiler error _ Jordan J message in email and bugs list _ can't used random() inside constructor.. (Glen Murphy) _ maybe related to problems loading images in constructors -x images don't load during setup [reas] //This is not a problem -- Casey _ weird comments bug (external file) _ if image doesn't exist, spews null pointer exception and freaks _ locking up environment/machine @@ -206,7 +219,6 @@ _ need to check if volume is read-only, notify and quit if it is _ people are trying to run off the disk image _ lots of problems with the console _ [maybe this needs to be a textarea?] -_ long lines seem to be trouble _ also printing of objects, esp when null, in jdk 14 _ exception when trying to write to stdout _ split KjcEngine into three parts