Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
whqwjb
go-ethereum
提交
2c42e545
G
go-ethereum
项目概览
whqwjb
/
go-ethereum
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
go-ethereum
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2c42e545
编写于
11月 24, 2015
作者:
P
Péter Szilágyi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Makefile: add support for iOS cross compilation
上级
b0fb48c3
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
51 addition
and
16 deletion
+51
-16
Godeps/Godeps.json
Godeps/Godeps.json
+1
-1
Godeps/_workspace/src/github.com/nsf/termbox-go/README.md
Godeps/_workspace/src/github.com/nsf/termbox-go/README.md
+2
-0
Godeps/_workspace/src/github.com/nsf/termbox-go/api.go
Godeps/_workspace/src/github.com/nsf/termbox-go/api.go
+16
-8
Godeps/_workspace/src/github.com/nsf/termbox-go/api_windows.go
...s/_workspace/src/github.com/nsf/termbox-go/api_windows.go
+4
-0
Godeps/_workspace/src/github.com/nsf/termbox-go/syscalls_darwin.go
...orkspace/src/github.com/nsf/termbox-go/syscalls_darwin.go
+0
-0
Godeps/_workspace/src/github.com/nsf/termbox-go/termbox.go
Godeps/_workspace/src/github.com/nsf/termbox-go/termbox.go
+10
-4
Godeps/_workspace/src/github.com/nsf/termbox-go/termbox_windows.go
...orkspace/src/github.com/nsf/termbox-go/termbox_windows.go
+2
-2
Makefile
Makefile
+16
-1
未找到文件。
Godeps/Godeps.json
浏览文件 @
2c42e545
...
...
@@ -55,7 +55,7 @@
},
{
"ImportPath"
:
"github.com/nsf/termbox-go"
,
"Rev"
:
"
675ffd907b7401b8a709a5ef2249978af5616bb2
"
"Rev"
:
"
c4d5eeeb18b378c361f9f2a731680e8b835969ed
"
},
{
"ImportPath"
:
"github.com/pborman/uuid"
,
...
...
Godeps/_workspace/src/github.com/nsf/termbox-go/README.md
浏览文件 @
2c42e545
...
...
@@ -16,6 +16,8 @@ There are also some interesting projects using termbox-go:
-
[
httopd
](
https://github.com/verdverm/httopd
)
is top for httpd logs.
-
[
mop
](
https://github.com/michaeldv/mop
)
is stock market tracker for hackers.
-
[
termui
](
https://github.com/gizak/termui
)
is a terminal dashboard.
-
[
termloop
](
https://github.com/JoelOtter/termloop
)
is a terminal game engine.
-
[
xterm-color-chart
](
https://github.com/kutuluk/xterm-color-chart
)
is a XTerm 256 color chart.
### API reference
[
godoc.org/github.com/nsf/termbox-go
](
http://godoc.org/github.com/nsf/termbox-go
)
Godeps/_workspace/src/github.com/nsf/termbox-go/api.go
浏览文件 @
2c42e545
...
...
@@ -351,7 +351,7 @@ func PollEvent() Event {
// terminal's window size in characters). But it doesn't always match the size
// of the terminal window, after the terminal size has changed, the internal
// back buffer will get in sync only after Clear or Flush function calls.
func
Size
()
(
int
,
int
)
{
func
Size
()
(
width
int
,
height
int
)
{
return
termw
,
termh
}
...
...
@@ -380,6 +380,12 @@ func SetInputMode(mode InputMode) InputMode {
if
mode
==
InputCurrent
{
return
input_mode
}
if
mode
&
(
InputEsc
|
InputAlt
)
==
0
{
mode
|=
InputEsc
}
if
mode
&
(
InputEsc
|
InputAlt
)
==
InputEsc
|
InputAlt
{
mode
&^=
InputAlt
}
if
mode
&
InputMouse
!=
0
{
out
.
WriteString
(
funcs
[
t_enter_mouse
])
}
else
{
...
...
@@ -391,6 +397,7 @@ func SetInputMode(mode InputMode) InputMode {
}
// Sets the termbox output mode. Termbox has four output options:
//
// 1. OutputNormal => [1..8]
// This mode provides 8 different colors:
// black, red, green, yellow, blue, magenta, cyan, white
...
...
@@ -402,10 +409,10 @@ func SetInputMode(mode InputMode) InputMode {
//
// 2. Output256 => [1..256]
// In this mode you can leverage the 256 terminal mode:
// 0x0
0 - 0x07
: the 8 colors as in OutputNormal
// 0x0
8 - 0x0f
: Color* | AttrBold
// 0x1
0 - 0xe7
: 216 different colors
// 0xe
8 - 0x
ff: 24 different shades of grey
// 0x0
1 - 0x08
: the 8 colors as in OutputNormal
// 0x0
9 - 0x10
: Color* | AttrBold
// 0x1
1 - 0xe8
: 216 different colors
// 0xe
9 - 0x1
ff: 24 different shades of grey
//
// Example usage:
// SetCell(x, y, '@', 184, 240);
...
...
@@ -415,11 +422,12 @@ func SetInputMode(mode InputMode) InputMode {
// This mode supports the 3rd range of the 256 mode only.
// But you dont need to provide an offset.
//
// 4. OutputGrayscale => [1..24]
// This mode supports the 4th range of the 256 mode only.
// 4. OutputGrayscale => [1..26]
// This mode supports the 4th range of the 256 mode
// and black and white colors from 3th range of the 256 mode
// But you dont need to provide an offset.
//
// In all modes, 0 represents the default color.
// In all modes, 0
x00
represents the default color.
//
// `go run _demos/output.go` to see its impact on your terminal.
//
...
...
Godeps/_workspace/src/github.com/nsf/termbox-go/api_windows.go
浏览文件 @
2c42e545
...
...
@@ -80,6 +80,10 @@ func Close() {
// stop event producer
cancel_comm
<-
true
set_event
(
interrupt
)
select
{
case
<-
input_comm
:
default
:
}
<-
cancel_done_comm
set_console_cursor_info
(
out
,
&
orig_cursor_info
)
...
...
Godeps/_workspace/src/github.com/nsf/termbox-go/syscalls_darwin
_386
.go
→
Godeps/_workspace/src/github.com/nsf/termbox-go/syscalls_darwin.go
浏览文件 @
2c42e545
文件已移动
Godeps/_workspace/src/github.com/nsf/termbox-go/termbox.go
浏览文件 @
2c42e545
...
...
@@ -72,6 +72,12 @@ var (
input_comm
=
make
(
chan
input_event
)
interrupt_comm
=
make
(
chan
struct
{})
intbuf
=
make
([]
byte
,
0
,
16
)
// grayscale indexes
grayscale
=
[]
Attribute
{
0
,
17
,
233
,
234
,
235
,
236
,
237
,
238
,
239
,
240
,
241
,
242
,
243
,
244
,
245
,
246
,
247
,
248
,
249
,
250
,
251
,
252
,
253
,
254
,
255
,
256
,
232
,
}
)
func
write_cursor
(
x
,
y
int
)
{
...
...
@@ -171,17 +177,17 @@ func send_attr(fg, bg Attribute) {
case
OutputGrayscale
:
fgcol
=
fg
&
0x1F
bgcol
=
bg
&
0x1F
if
fgcol
>
2
4
{
if
fgcol
>
2
6
{
fgcol
=
ColorDefault
}
if
bgcol
>
2
4
{
if
bgcol
>
2
6
{
bgcol
=
ColorDefault
}
if
fgcol
!=
ColorDefault
{
fgcol
+=
0xe8
fgcol
=
grayscale
[
fgcol
]
}
if
bgcol
!=
ColorDefault
{
bgcol
+=
0xe8
bgcol
=
grayscale
[
bgcol
]
}
default
:
fgcol
=
fg
&
0x0F
...
...
Godeps/_workspace/src/github.com/nsf/termbox-go/termbox_windows.go
浏览文件 @
2c42e545
...
...
@@ -129,7 +129,7 @@ func create_console_screen_buffer() (h syscall.Handle, err error) {
err
=
syscall
.
EINVAL
}
}
return
syscall
.
Handle
(
r0
),
nil
return
syscall
.
Handle
(
r0
),
err
}
func
get_console_screen_buffer_info
(
h
syscall
.
Handle
,
info
*
console_screen_buffer_info
)
(
err
error
)
{
...
...
@@ -305,7 +305,7 @@ func create_event() (out syscall.Handle, err error) {
err
=
syscall
.
EINVAL
}
}
return
syscall
.
Handle
(
r0
),
nil
return
syscall
.
Handle
(
r0
),
err
}
func
wait_for_multiple_objects
(
objects
[]
syscall
.
Handle
)
(
err
error
)
{
...
...
Makefile
浏览文件 @
2c42e545
...
...
@@ -7,10 +7,11 @@
.PHONY
:
geth-darwin geth-darwin-386 geth-darwin-amd64
.PHONY
:
geth-windows geth-windows-386 geth-windows-amd64
.PHONY
:
geth-android geth-android-16 geth-android-21
.PHONY
:
geth-ios geth-ios-5.0 geth-ios-8.1
GOBIN
=
build/bin
CROSSDEPS
=
https://gmplib.org/download/gmp/gmp-6.
0.0a
.tar.bz2
CROSSDEPS
=
https://gmplib.org/download/gmp/gmp-6.
1.0
.tar.bz2
GO
?=
latest
geth
:
...
...
@@ -83,6 +84,20 @@ geth-android-21: xgo
@
echo
"Android 21 cross compilation done:"
@
ls
-l
$(GOBIN)
/geth-android-21-
*
geth-ios
:
xgo geth-ios-5.0 geth-ios-8.1
@
echo
"iOS cross compilation done:"
@
ls
-l
$(GOBIN)
/geth-ios-
*
geth-ios-5.0
:
build/env.sh
$(GOBIN)
/xgo
--go
=
$(GO)
--dest
=
$(GOBIN)
--deps
=
$(CROSSDEPS)
--depsargs
=
--disable-assembly
--targets
=
ios-5.0/
*
-v
$(
shell
build/flags.sh
)
./cmd/geth
@
echo
"iOS 5.0 cross compilation done:"
@
ls
-l
$(GOBIN)
/geth-ios-5.0-
*
geth-ios-8.1
:
build/env.sh
$(GOBIN)
/xgo
--go
=
$(GO)
--dest
=
$(GOBIN)
--deps
=
$(CROSSDEPS)
--depsargs
=
--disable-assembly
--targets
=
ios-8.1/
*
-v
$(
shell
build/flags.sh
)
./cmd/geth
@
echo
"iOS 8.1 cross compilation done:"
@
ls
-l
$(GOBIN)
/geth-ios-8.1-
*
evm
:
build/env.sh
$(GOROOT)
/bin/go
install
-v
$(
shell
build/flags.sh
)
./cmd/evm
@
echo
"Done building."
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录