Skip to content

Commit

Permalink
Merge pull request #736 from TimRudy/Issue729-3
Browse files Browse the repository at this point in the history
Some text edits especially for the Serial Terminal page
  • Loading branch information
cavearr authored May 1, 2024
2 parents a8d63cc + 8b17f87 commit 81f327d
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 56 deletions.
6 changes: 3 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
let os = require("os");
os.tmpDir = os.tmpdir;

//-- This is for debuging...
//-- This is for debugging...
console.log("Executing Gruntfile.js...");

//---------------------------------------------------------------------------
Expand Down Expand Up @@ -631,11 +631,11 @@ module.exports = function (grunt) {

//------------------------------------------------------------
//-- DEBUG
//-- Display information on the console, for debuging
//-- Display information on the console, for debugging
//-- purposes
//------------------------------------------------------------

console.log("------------ INFORMATION FOR DEBUGING -------------------");
console.log("------------ INFORMATION FOR DEBUGGING -------------------");
console.log("* Package name: " + ICESTUDIO_PKG_NAME);
console.log("* NW Version: " + NW_VERSION);
console.log("* APPIMAGE: " + LINUX_APPIMAGE_FILE);
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<a name="main-page"></a>
[![](https://github.com/FPGAwars/icestudio-wiki/raw/main/Logos/icestudio-github.svg)](https://github.com/FPGAwars/icestudio/wiki)


Expand Down Expand Up @@ -117,7 +118,8 @@ Add or update the [app translations](https://github.com/FPGAwars/icestudio/tree/
* use `scripts/update_translations.sh` to update current existing `*.po` language files based on the template (before editing them)
* use `grunt compiletext` to regenerate `*.json` language files (these are what the IDE really need) to test them

*Developer note*: use `export NWJS_BUILD_TYPE=sdk` after npm install to enable the chrome web console.
*Developer note*:
* for Windows, use `npm config set script-shell "C:\\Program Files\\Git\\bin\\bash.exe"` or equivalent so the postinstall script can run during npm install

## Contributors

Expand Down
6 changes: 3 additions & 3 deletions app/resources/plugins/example-plugin/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_ver": "1.0",
"id":"example-plugin",
"id": "example-plugin",
"name": "Plugin example",
"icon": "img/icestudio-logo.png",
"launchAtStartup":false
}
"launchAtStartup": false
}
5 changes: 2 additions & 3 deletions app/resources/plugins/icerok/manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"manifest_ver": "1.0",
"id":"icerok",
"id": "icerok",
"name": "IceRok",
"icon": "assets/icon.svg",
"width": 840,
"height":375
"height": 375
}

71 changes: 31 additions & 40 deletions app/resources/plugins/serial-term/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -215,58 +215,52 @@
</div>


<p><br><strong>Terminal color coding:</strong></p>
<p>&nbsp;</p>
<p style="color:#FFFFFF" ;> White: Text being edited (to be sent on Enter)<br>
<p style="color:#edd20d" ;> Yellow: Text sent to the serial port<br>
<p style="color:#99fb04" ;> Green: Text received from the serial port<br><br></p>


<p><br><strong>Terminal Color code:</strong></p>
<p style="color:#FFFFFF" ;> white : text under edition (to be sent on enter) <br>
<p style="color:#edd20d" ;> Yellow : text sent to the serial port<br>
<p style="color:#99fb04" ;> green : text received from the serial port<br><br></p>


<!-- Show the some serial monitor info -->
<!-- Show info and instructions -->

<textarea rows="45" cols="130">
=========== User Manual ===========

Serial Monitor Options:
Serial Terminal options:

- Local echo : prints on terminal the data sent to the serial port
- Flush on enter(Checked): sent all the data only when enter is pressed.
- Flush on enter(Unchecked): sent every character just after the press on the corresponding.
- Hex view (checked); convert the RX received ASCII data to hexadecimal. And prints it on terminal
- On enter sends: On enter key press, adds the selected special ascii char at the end of the Ascii TX stream and sent it to the serial port
- Local echo: Print the data sent to serial port on the terminal also
- Flush on Enter (Checked): Send all the data only when Enter is pressed
- Flush on Enter (Unchecked): Send every character when key is pressed
- Hex view (Checked): Convert the RX received ASCII data to hexadecimal to print it on the terminal
- On Enter sends: On Enter key press, add the selected special ASCII char to the end of the TX stream that is sent to serial port

-------------------------------------------------------------------------------------------------------
Keyboard shortcuts when editing:

- LEFT and RIGHT arrows : Move left and right for editing input
- UP and DOWN arrows : Move up and down for editing input (in Multi-line continuation mode)
- DELETE and BACKSPACE : one char deletion
- HOME and END : cursor jump to the beginning or the end of the input text
- Alt + UP arrow , Alt + DOWN arrow : access the commands you previously typed (Command History just like bash)
remark: when cursor is at the beginning or at the end of the entered text, using up and down arrows also navigates trough command history.
- Alt + LEFT arrow , Alt + RIGHT arrow : Word-boundary navigation, jump between words (separated by spaces " " char)
- Alt + BACKspace : Word-boundary deletion, to delete a full word
- LEFT and RIGHT arrows: Move left and right for editing input
- UP and DOWN arrows: Move up and down for editing input (in Multi-line continuation mode)
- DELETE and BACKSPACE: Delete one char
- HOME and END: Jump to beginning or end of the input text
- Alt + UP arrow, Alt + DOWN arrow: Access the commands previously typed (command history like bash)
Remark: When cursor is at the beginning or end of entered text, using UP and DOWN arrows also navigates through command history
- Alt + LEFT arrow, Alt + RIGHT arrow: Word-boundary navigate (jump between words separated by space char)
- Alt + BACKSPACE: Word-boundary delete (delete full word)

Multi-line continuation mode: Break command to multiple lines if they contain incomplete quotation marks, boolean operators (&& or ||), pipe operator (|), or new-line escape sequence (\).
Multi-line continuation mode: One command can be edited in multiple lines if it contains incomplete quotation marks, boolean operator (&& or ||), pipe operator (|), or new-line escape sequence (\)

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

- To select text in terminal with mouse :
Left click and move mouse OR double click on left button (word selection) OR triple click (select all text block)
- To select text in terminal with mouse:
Left click and drag mouse OR double click left button (word-select) OR triple click (select the full text block)

- To copy text in terminal select the text and then:
Press ctrl+Insert OR right click and select copy
- To copy text in terminal, select the text then:
Press Ctrl + INSERT OR right click and select Copy

- To paste text in terminal:
Press shift+Insert OR right click and select paste


remark : do not copy the text in the white (editing) section (the carriage returns were replace by "|" and spaces characters) so there will be no carriage returns in your copied text !


</textarea>
Press Shift + INSERT OR right click and select Paste

Remark: Do not copy the text in the white (editing) section. Carriage returns are substituted by "|" and space characters, so there will be no carriage returns in your copied text!
</textarea>


<div>
Expand All @@ -283,9 +277,6 @@
</form>
</div>




</div>

<!---------------------------------------------------------------------->
Expand Down Expand Up @@ -325,7 +316,7 @@
<!-- Flush buffer on "Enter" key -->
<span>
&nbsp;&nbsp;&nbsp;&nbsp;
<label for="sconf-flushenter">Flush&nbsp;on&nbsp;enter</label>
<label for="sconf-flushenter">Flush&nbsp;on&nbsp;Enter</label>
<input type="checkbox" name="sconf-flushenter" id="sconf-flushenter" checked />
</span>

Expand All @@ -338,7 +329,7 @@
<!-- On enter -->
<span>
&nbsp;&nbsp;&nbsp;&nbsp;
<label for="sconf-onenter">On&nbsp;enter&nbsp;sends:</label>
<label for="sconf-onenter">On&nbsp;Enter&nbsp;sends:</label>
<select id="sconf-onenter" size="1">
<option selected value="CRLF">CRLF</option>
<option value="CR">CR</option>
Expand All @@ -356,4 +347,4 @@
<script src="js/main.js"></script>
</body>

</html>
</html>
6 changes: 3 additions & 3 deletions app/resources/plugins/serial-term/manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"manifest_ver": "1.0",
"id":"serial-term",
"name": "Serial term",
"id": "serial-term",
"name": "Serial Terminal",
"icon": "img/terminal.png",
"width": 840,
"height":550
"height": 550
}
6 changes: 3 additions & 3 deletions app/scripts/controllers/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -1536,10 +1536,10 @@ angular
" <p>Thanks to <strong>Jesús Arroyo Torrens</strong>, ",
'<a class="action-open-url-external-browser" href="https://github.com/Jesus89"><img class="credits-rss-icon" src="resources/images/icon-github.svg"></a>&nbsp;&nbsp;',
'<a class="action-open-url-external-browser" href="https://twitter.com/JesusArroyo89"><img class="credits-rss-icon" src="resources/images/icon-twitter.svg"></a>',
'who start this project and was the main developer from 2016/Jan/28 to 2019/Oct',
'who started this project and was the main developer from 2016/Jan/28 to 2019/Oct',
"</p>",
' <p>Thanks to the rest of <a class="action-open-url-external-browser" href="https://github.com/FPGAwars/icestudio">contributors</a></p>',
' <p><span class="copyleft">&copy;</span> <a class="action-open-url-external-browser" href="https://fpgawars.github.io">FPGAwars</a> 2016-2022</p>',
' <p>Thanks to the rest of <a class="action-open-url-external-browser" href="https://github.com/FPGAwars/icestudio#main-page">contributors</a></p>',
' <p><span class="copyleft">&copy;</span> <a class="action-open-url-external-browser" href="https://fpgawars.github.io">FPGAwars</a> 2016-2024</p>',
'<img src="resources/images/fpgawars-logo.png">',
" </div>",
"</div>",
Expand Down

0 comments on commit 81f327d

Please sign in to comment.