SlideShare a Scribd company logo
Submit Search
Upload
Login
Signup
Curses
Report
Langur
Follow
Feb. 11, 2016
•
0 likes
•
907 views
1
of
25
Curses
Feb. 11, 2016
•
0 likes
•
907 views
Download Now
Download to read offline
Report
Technology
Hamamatsu.rb #61で発表したCursesについてのLT資料です。 RubyのCursesモジュールを紹介しました。
Langur
Follow
Recommended
Lighting fast rails with zeus
Philipp Fehre
783 views
•
33 slides
Central Iowa Linux Users Group October Meeting: Centos 8
Andrew Denner
83 views
•
39 slides
Introduction to Apache Maven
juvenxu
1.3K views
•
26 slides
Unix for developers
Mite Mitreski
1.6K views
•
29 slides
161117
robo_lab
133 views
•
10 slides
Vagrant - Version control your dev environment
bocribbz
3.7K views
•
42 slides
More Related Content
What's hot
How to make a WoW server Warlords of Draenor
Mohit Maheshwari
1.1K views
•
4 slides
IronRuby
Alex Moore
616 views
•
20 slides
linux_distro
Thipphachan Maniphousai
273 views
•
11 slides
Topologia lab
Cassio Ramos
1.8K views
•
1 slide
Intro to introducing rust to ruby
Anthony Broad-Crawford
570 views
•
20 slides
Compiling linux kernel and submit first patch
Mayur Patil
18 views
•
13 slides
What's hot
(20)
How to make a WoW server Warlords of Draenor
Mohit Maheshwari
•
1.1K views
IronRuby
Alex Moore
•
616 views
linux_distro
Thipphachan Maniphousai
•
273 views
Topologia lab
Cassio Ramos
•
1.8K views
Intro to introducing rust to ruby
Anthony Broad-Crawford
•
570 views
Compiling linux kernel and submit first patch
Mayur Patil
•
18 views
Gerenciando múltiplas versões do PostgreSQL com pgvm
Dickson S. Guedes
•
623 views
Ruby on the server
Gleb Mazovetskiy
•
539 views
SUnit 4.0
ESUG
•
650 views
Swift on raspberry pi
iCHEF
•
406 views
02 free bsd installation
Abdelaziz Ali
•
450 views
Zookeper
AlexeyStepanov21
•
35 views
From Java To Node.js
Cliffano Subagio
•
2.8K views
Local development environment through virtualisation
Radu Barbu
•
252 views
RingoJS
Oleg Podsechin
•
1.4K views
Howto Make A Linux Boot Disk
Xaver Y.R. Chen
•
561 views
How do I reconfigure my new virtual machine so that it boots straight into gu...
Paul Prawdzik
•
12 views
Understanding Burp Replicator
Neelu Tripathy
•
413 views
Erlang/OTP
voluntas
•
849 views
Node App Start Forever
Gunjan patel
•
408 views
Viewers also liked
Winter_School_Lausanne2016_Pavel_Zhurauski
Pavel Zhurauski
95 views
•
1 slide
10 Reasons to Choose SBCS_05082016[final]
Ornella Dick
141 views
•
31 slides
Curso de inglés bbc english 57
Leonel LadinoSolito
133 views
•
21 slides
Dr Ashok CV
Dr Ashok Kumar Yadav
477 views
•
4 slides
Curso de inglés bbc english 53
Leonel LadinoSolito
137 views
•
21 slides
Curso de inglés bbc english 51
Leonel LadinoSolito
303 views
•
21 slides
Viewers also liked
(17)
Winter_School_Lausanne2016_Pavel_Zhurauski
Pavel Zhurauski
•
95 views
10 Reasons to Choose SBCS_05082016[final]
Ornella Dick
•
141 views
Curso de inglés bbc english 57
Leonel LadinoSolito
•
133 views
Dr Ashok CV
Dr Ashok Kumar Yadav
•
477 views
Curso de inglés bbc english 53
Leonel LadinoSolito
•
137 views
Curso de inglés bbc english 51
Leonel LadinoSolito
•
303 views
HIA 201
Sandra Whitehead
•
338 views
Curso de inglés bbc english 49
Leonel LadinoSolito
•
369 views
Curso de inglés bbc english 56
Leonel LadinoSolito
•
147 views
ECQA Certificate Miroslava Ivanova
Miroslava Ivanova
•
304 views
10 tips för att undvika spamfiltren
Torbjörn Sandblad
•
305 views
Health Impact Assessment and Health in All Policies
Sandra Whitehead
•
520 views
cvpa
Sonali Kukreja
•
463 views
Introduction to MapReduce Programming
Triveni Ganta
•
61 views
Kesalahan tatabahasa
kevinyok01
•
7.5K views
Health and Wellbeing in Built Environment
Green Initiatives 绿色倡议
•
1.1K views
PT3 Bahasa Melayu Set 2
kevinyok01
•
2.3K views
Similar to Curses
Node Security: The Good, Bad & Ugly
Bishan Singh
8.4K views
•
32 slides
Sinatra: прошлое, будущее и настоящее
.toster
1K views
•
74 slides
Os Cook
oscon2007
823 views
•
18 slides
Functional Programming with Streams in node.js
Adam Crabtree
9.5K views
•
37 slides
Intro to Rust for Solana.pptx
TinaBregovi
253 views
•
59 slides
Ruby
Aizat Faiz
6.4K views
•
48 slides
Similar to Curses
(20)
Node Security: The Good, Bad & Ugly
Bishan Singh
•
8.4K views
Sinatra: прошлое, будущее и настоящее
.toster
•
1K views
Os Cook
oscon2007
•
823 views
Functional Programming with Streams in node.js
Adam Crabtree
•
9.5K views
Intro to Rust for Solana.pptx
TinaBregovi
•
253 views
Ruby
Aizat Faiz
•
6.4K views
Slackware Demystified [SELF 2011]
Vincent Batts
•
580 views
Rusted Ruby
Ian Pointer
•
468 views
Running Ruby on Solaris (RubyKaigi 2015, 12/Dec/2015)
ngotogenome
•
11.9K views
IronRuby for the Rubyist
Will Green
•
1K views
Scale11x lxc talk
dotCloud
•
22.3K views
The Ruby Guide to *nix Plumbing: Hax0R R3dux
Eleanor McHugh
•
1.3K views
Concurrent Programming with Ruby and Tuple Spaces
luccastera
•
5.4K views
Jordan Hubbard Talk @ LISA
guest4c923d
•
575 views
skipfish
Christian Heinrich
•
4.3K views
Full Web Stack Security
Drupal Portugal
•
2.5K views
Go Lang
Venkata Naga Ravi
•
930 views
BUD17-104: Scripting Languages in IoT: Challenges and Approaches
Linaro
•
770 views
Infrastructure as code: running microservices on AWS using Docker, Terraform,...
Yevgeniy Brikman
•
177.4K views
Infrastructureascode slideshare-160331143725
MortazaJohari
•
25 views
Recently uploaded
Webinar: Discover the Power of SpiraTeam - A Jira Alternative To Revolutioniz...
Inflectra
26 views
•
35 slides
BuilderAI Proposal_Malesniak
Michael Lesniak
81 views
•
9 slides
Microsoft Azure New - Sep 2023
Daniel Toomey
28 views
•
31 slides
Data Formats: Reading and writing JSON – XML - YAML
CSUC - Consorci de Serveis Universitaris de Catalunya
22 views
•
8 slides
Swiss Re Reinsurance Solutions - Automated Claims Experience – Insurer Innova...
The Digital Insurer
22 views
•
13 slides
Fipto Seed Pitch Deck
sjcobrien
33 views
•
13 slides
Recently uploaded
(20)
Webinar: Discover the Power of SpiraTeam - A Jira Alternative To Revolutioniz...
Inflectra
•
26 views
BuilderAI Proposal_Malesniak
Michael Lesniak
•
81 views
Microsoft Azure New - Sep 2023
Daniel Toomey
•
28 views
Data Formats: Reading and writing JSON – XML - YAML
CSUC - Consorci de Serveis Universitaris de Catalunya
•
22 views
Swiss Re Reinsurance Solutions - Automated Claims Experience – Insurer Innova...
The Digital Insurer
•
22 views
Fipto Seed Pitch Deck
sjcobrien
•
33 views
Die ultimative Anleitung für HCL Nomad Web Administratoren
panagenda
•
48 views
Inclusivity and AI: opportunity or threat
Alan Dix
•
30 views
Unleashing the Power of Modern Carpooling Apps, Inspired by BlaBlaCar
Archie Cadell
•
26 views
Keynote: Two years at the British Library... and counting / Alan Danskin (Bri...
CILIP MDG
•
17 views
class and object in c++.pptx
Adarsh College, Hingoli
•
177 views
Industry 4.0.pdf
Tery Lockitski
•
30 views
ISO Survey 2022: ISO 27001 certificates (ISMS)
Andrey Prozorov, CISM, CIPP/E, CDPSE. LA 27001
•
49 views
TaketoFujikawa_KES2023
Matsushita Laboratory
•
112 views
AMAZON-RESUME.pdf
RegineRaneses
•
35 views
h2 meet pdf test.pdf
JohnLee971654
•
43 views
Jino Clone: Develop a Car Wash Mobile App with Limited Resources
eSiteWorld TechnoLabs Pvt. Ltd.
•
21 views
Announcing InfluxDB Clustered
InfluxData
•
42 views
Improving Employee Experiences on Cisco RoomOS Devices, Webex, and Microsoft ...
ThousandEyes
•
46 views
who we are - values.pptx
LauraGarceran
•
28 views
Curses
1.
Curses Hamamatsu.rb #61 Langur(@osarusystem) Wed Feb
10 2016
2.
About Me
3.
CC-BY-SA 3.0 from
Wikipedia Name : Langur Twitter : @osarusystem Jobs : Embedded Software Engineer Network Software Engineer Interestedness : OS/Cipher/FreeBSD/Ruby/ Primates/Making Sweets/ ...etc
4.
Curses
5.
Curses Curses : A
terminal control library Developer : Ken Arnold Reference : vi Used : Rouge/Tin/Jack ... etc Provide : Interface on CLI like GUI Not all based applications employ like this Support : Linux/BSD/Windows ... etc
6.
Ruby curses
7.
Ruby curses def support?(version) if
(version < 2.1) p “standard library” else p “gem library” end end
8.
How to use require
“curses” Curses.init_screen begin s = “Hello World!” Curses.setpos(1, 1) Curses.addstr(s) Curses.refresh Curses.getch ensure Cursese.close_screen end 1. 初期化処理 2. Cursesの設定 (省略可) 3. windowの操作 4. 入力待ち (省略可) 5. 終了処理
9.
How to use require
“curses” Curses.init_screen begin s = “Hello World!” Curses.setpos(1, 1) Curses.addstr(s) Curses.refresh Curses.getch ensure Cursese.close_screen end 1. 初期化処理 2. Cursesの設定 (省略可) 3. windowの操作 4. 入力待ち (省略可) 5. 終了処理
10.
How to use require
“curses” Curses.init_screen begin s = “Hello World!” Curses.setpos(1, 1) Curses.addstr(s) Curses.refresh Curses.getch ensure Cursese.close_screen end 1. 初期化処理 2. Cursesの設定 (省略可) 3. windowの操作 4. 入力待ち (省略可) 5. 終了処理
11.
How to use require
“curses” Curses.init_screen begin s = “Hello World!” Curses.setpos(1, 1) Curses.addstr(s) Curses.refresh Curses.getch ensure Cursese.close_screen end 1. 初期化処理 2. Cursesの設定 (省略可) 3. windowの操作 4. 入力待ち (省略可) 5. 終了処理
12.
How to use require
“curses” Curses.init_screen begin s = “Hello World!” Curses.setpos(1, 1) Curses.addstr(s) Curses.refresh Curses.getch ensure Cursese.close_screen end 1. 初期化処理 2. Cursesの設定 (省略可) 3. windowの操作 4. 入力待ち (省略可) 5. 終了処理
13.
Uncool
14.
Delete ‘Curses.’ require “curses” Curses.init_screen begin s
= “Hello World!” Curses.setpos(1, 1) Curses.addstr(s) Curses.refresh Curses.getch ensure Curses.close_screen end require “curses” include Curses init_screen begin s = “Hello World!” setpos(1, 1) addstr(s) refresh getch ensure close_screen end
15.
Execute
16.
Execute
17.
Execute
18.
Window
19.
Window stdscr sub2 sub1 ‘init_screan’ create ‘stdscr’. ‘stdscr’
is root window. ‘stdscr’ can create ‘sub window’.
20.
Create sub window begin s
= “stdscr”;ss = “subwindow” setpos(10, 10);addstr(s) sub = stdscr.subwin(3, 12, 1, 1) sub.box(?|, ?-, ?+) sub.setpos(1, 1);sub.addstr(ss) sub.refresh refresh getch ensure sub.close_screen close_screen end
21.
Execute
22.
Execute
23.
Next step
24.
Next step • I
want to create text editor. • Help me! • How to use Git-Hub • Ruby’s manner • GTK or Qt
25.
Thank you.